Return 0 on success from mjs_activatePlugin instead of using mju_error.
PiperOrigin-RevId: 684102823 Change-Id: I86b7702094ae886539e1dfb6294381952d507bc1
This commit is contained in:
committed by
Copybara-Service
parent
5dcc31a6aa
commit
a26ba2012e
@@ -241,8 +241,8 @@ MJAPI mjSpec* mj_copySpec(const mjSpec* s);
|
||||
// Free memory allocation in mjSpec.
|
||||
MJAPI void mj_deleteSpec(mjSpec* s);
|
||||
|
||||
// Activate plugin.
|
||||
MJAPI void mjs_activatePlugin(mjSpec* s, const char* name);
|
||||
// Activate plugin. Returns 0 on success.
|
||||
MJAPI int mjs_activatePlugin(mjSpec* s, const char* name);
|
||||
|
||||
|
||||
//---------------------------------- Printing ------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user