Refactor MuJoCo WASM bindings functions code generation and auto-generate functions requiring argument boundchecks.

PiperOrigin-RevId: 832333773
Change-Id: Id2e1a59e8d366baa2ee044d693f76aadcd1dfd32
This commit is contained in:
Matias Manevi
2025-11-14 08:50:04 -08:00
committed by Copybara-Service
parent 3f69deb328
commit a36f452250
5 changed files with 1256 additions and 1791 deletions
+2 -2
View File
@@ -224,8 +224,8 @@ class FunctionUtilsTest(absltest.TestCase):
name="my_struct",
type=ast_nodes.PointerType(ast_nodes.ValueType("mystruct")),
)
result = functions.get_params_string((param,))
self.assertEqual(result, ["Mystruct& my_struct"])
result = functions.get_param_string(param)
self.assertEqual(result, "Mystruct& my_struct")
def test_get_params_string_maybe_with_conversion_struct_ptr(self):
param = ast_nodes.FunctionParameterDecl(