mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-06 18:31:57 +08:00
tune _WRN_PRINTF and _DBG_PRINTF
This commit is contained in:
@@ -2318,7 +2318,6 @@ int init_minigui_printf (int (*output_char) (int ch),
|
||||
TCS_BROWN (stderr); \
|
||||
fprintf (stderr, "%s: ", __FUNCTION__); \
|
||||
fprintf (stderr, fmt, ##__VA_ARGS__); \
|
||||
fprintf (stderr, "\n"); \
|
||||
TCS_NONE (stderr); \
|
||||
} while (0)
|
||||
|
||||
@@ -2333,11 +2332,12 @@ int init_minigui_printf (int (*output_char) (int ch),
|
||||
# define _DBG_PRINTF(fmt, ...) \
|
||||
do { \
|
||||
TCS_YELLOW (stderr); \
|
||||
fprintf (stderr, "%s: ", __FUNCTION__); \
|
||||
fprintf (stderr, fmt, ##__VA_ARGS__); \
|
||||
TCS_NONE (stderr); \
|
||||
} while (0)
|
||||
# else
|
||||
# define _DBG_PRINTF(fmt, ...)
|
||||
# define _DBG_PRINTF(fmt, ...) do { } while (0)
|
||||
#endif
|
||||
|
||||
#ifdef _MGRM_THREADS
|
||||
|
||||
Reference in New Issue
Block a user