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:
committed by
Copybara-Service
parent
3f69deb328
commit
a36f452250
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user