Add custom Emscripten binding for mj_saveModel.

Also adds support to unpack nullable string args

PiperOrigin-RevId: 859702186
Change-Id: Ia9e10f447ecf17b1dd74dd64d988790107a438a6
This commit is contained in:
Google DeepMind
2026-01-22 11:35:23 -08:00
committed by Copybara-Service
parent 5ae6b5fe31
commit 61f13cd8f1
5 changed files with 115 additions and 5 deletions
+1 -1
View File
@@ -142,7 +142,6 @@ _SKIPPED_MEMORY_FUNCTIONS: tuple[str, ...] = (
"mj_loadModel",
"mj_loadModelBuffer",
"mj_markStack",
"mj_saveModel",
"mj_stackAllocByte",
"mj_stackAllocInt",
"mj_stackAllocNum",
@@ -229,6 +228,7 @@ MANUAL_WRAPPER_FUNCTIONS: tuple[str, ...] = (
# go/keep-sorted start
"mj_compile",
"mj_saveLastXML",
"mj_saveModel",
"mj_setLengthRange",
"mju_error",
# go/keep-sorted end