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:
Kyle Bayes
2023-03-09 13:50:39 -08:00
committed by Copybara-Service
parent 2e6a37e8c5
commit d3d789cf7d
33 changed files with 177 additions and 184 deletions
+4 -4
View File
@@ -4674,7 +4674,7 @@ FUNCTIONS: Mapping[str, FunctionDecl] = dict([
type=ValueType(name='int'),
),
),
doc='Error function with int argument; msg is a printf format string.',
doc='Deprecated: use mju_error',
)),
('mju_error_s',
FunctionDecl(
@@ -4694,7 +4694,7 @@ FUNCTIONS: Mapping[str, FunctionDecl] = dict([
),
),
),
doc='Error function with string argument.',
doc='Deprecated: use mju_error',
)),
('mju_warning',
FunctionDecl(
@@ -4726,7 +4726,7 @@ FUNCTIONS: Mapping[str, FunctionDecl] = dict([
type=ValueType(name='int'),
),
),
doc='Warning function with int argument.',
doc='Deprecated: use mju_warning',
)),
('mju_warning_s',
FunctionDecl(
@@ -4746,7 +4746,7 @@ FUNCTIONS: Mapping[str, FunctionDecl] = dict([
),
),
),
doc='Warning function with string argument.',
doc='Deprecated: use_mju_warning',
)),
('mju_clearHandlers',
FunctionDecl(