|
|
@ -53,10 +53,11 @@ int os_snprintf(char *str, size_t size, const char *format, ...) __attribute__(( |
|
|
|
int os_printf_plus(const char *format, ...) __attribute__((format(printf, 1, 2))); |
|
|
|
int os_printf_plus(const char *format, ...) __attribute__((format(printf, 1, 2))); |
|
|
|
|
|
|
|
|
|
|
|
#undef os_printf |
|
|
|
#undef os_printf |
|
|
|
#define os_printf(format, ...) \ |
|
|
|
#define os_printf(format, ...) do { \ |
|
|
|
system_set_os_print(true); \
|
|
|
|
system_set_os_print(true); \
|
|
|
|
os_printf_plus(format, ## __VA_ARGS__); \
|
|
|
|
os_printf_plus(format, ## __VA_ARGS__); \
|
|
|
|
system_set_os_print(DEBUG_SDK); // int os_printf(const char *format, ...)
|
|
|
|
system_set_os_print(DEBUG_SDK); \
|
|
|
|
|
|
|
|
} while (0) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// memory allocation functions are "different" due to memory debugging functionality
|
|
|
|
// memory allocation functions are "different" due to memory debugging functionality
|
|
|
|