Rename WASM binding wrapper functions and reorder generated code.

PiperOrigin-RevId: 834265965
Change-Id: I58e7d572dcae4f1ca262ae5d876fcd8353af183c
This commit is contained in:
Google DeepMind
2025-11-19 06:24:57 -08:00
committed by Copybara-Service
parent 10fe5ff07f
commit 49394d57d9
3 changed files with 981 additions and 980 deletions
+2 -1
View File
@@ -523,7 +523,8 @@ def _build_struct_bindings(
builder.line(".constructor<const MjModel &, const MjData &>()")
elif w == "MjModel":
builder.line(
'.class_function("loadFromXML", &loadFromXML, take_ownership())'
'.class_function("loadFromXML", &loadFromXML_wrapper,'
" take_ownership())"
)
builder.line(".constructor<const MjModel &>()")
elif w == "MjSpec":