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
@@ -2041,10 +2041,10 @@ void mjui_update(int section, int item, const mjUI* ui,
|
||||
const mjuiState* state, const mjrContext* con);
|
||||
mjuiItem* mjui_event(mjUI* ui, mjuiState* state, const mjrContext* con);
|
||||
void mjui_render(mjUI* ui, const mjuiState* state, const mjrContext* con);
|
||||
void mju_error(const char* msg);
|
||||
void mju_error(const char* msg, ...) mjPRINTFLIKE(1, 2);
|
||||
void mju_error_i(const char* msg, int i);
|
||||
void mju_error_s(const char* msg, const char* text);
|
||||
void mju_warning(const char* msg);
|
||||
void mju_warning(const char* msg, ...) mjPRINTFLIKE(1, 2);
|
||||
void mju_warning_i(const char* msg, int i);
|
||||
void mju_warning_s(const char* msg, const char* text);
|
||||
void mju_clearHandlers(void);
|
||||
|
||||
Reference in New Issue
Block a user