tune _WRN_PRINTF and _DBG_PRINTF

This commit is contained in:
Vincent Wei
2019-11-19 09:41:47 +08:00
parent 8832f051a8
commit 064ceade0f

View File

@@ -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