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
@@ -127,7 +127,7 @@ void mjv_makeScene(const mjModel* m, mjvScene* scn, int maxgeom) {
|
||||
|
||||
// check allocation
|
||||
if (!scn->geoms || !scn->geomorder) {
|
||||
mju_error("Could not allocate geom buffers");
|
||||
mjERROR("could not allocate geom buffers");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -169,7 +169,7 @@ void mjv_makeScene(const mjModel* m, mjvScene* scn, int maxgeom) {
|
||||
!scn->skinvertnum ||
|
||||
!scn->skinvert ||
|
||||
!scn->skinnormal) {
|
||||
mju_error("Could not allocate skin buffers");
|
||||
mjERROR("could not allocate skin buffers");
|
||||
}
|
||||
|
||||
// copy constant data
|
||||
|
||||
Reference in New Issue
Block a user