Add engine internal error macro mjERROR to prepend calling function to error function.
PiperOrigin-RevId: 541584847 Change-Id: I57447e64375413ee07aa96372a402e1ced59ff4a
This commit is contained in:
committed by
Copybara-Service
parent
c9e9cd8b35
commit
ac1f41160d
@@ -436,7 +436,7 @@ int mj_setLengthRange(mjModel* m, mjData* d, int index,
|
||||
const mjLROpt* opt, char* error, int error_sz) {
|
||||
// check index
|
||||
if (index < 0 || index >= m->nu) {
|
||||
mju_error("Invalid actuator index in mj_setLengthRange");
|
||||
mjERROR("invalid actuator index");
|
||||
}
|
||||
|
||||
// skip depending on mode and type
|
||||
|
||||
Reference in New Issue
Block a user