Convert mju_error and mju_warning to variadic functions, supporting printf-like arguments. The functions mju_error_i, mju_error_s, mju_warning_i, and mju_warning_s are now deprecated.
PiperOrigin-RevId: 515431052 Change-Id: I440de0cb417ce216b6d636a5d86dc9ef6cc1fc06
This commit is contained in:
committed by
Copybara-Service
parent
2e6a37e8c5
commit
d3d789cf7d
@@ -30,6 +30,11 @@ def main(argv: Sequence[str]) -> None:
|
||||
|
||||
struct_decls = []
|
||||
for func in FUNCTIONS.values():
|
||||
# Skip mju_error_{i,s} and mju_warning_{i,s} as these are not
|
||||
# supported in the Python bindings, and Introspect currently
|
||||
# doesn't support variadic functions.
|
||||
if func.name.startswith('mju_error') or func.name == 'mju_warning':
|
||||
continue
|
||||
|
||||
# Modify some parameter types.
|
||||
parameters = []
|
||||
|
||||
Reference in New Issue
Block a user