Cleanup print macros

This commit is contained in:
Martin Lund 2018-10-21 02:14:18 +02:00
parent 14e70bd718
commit 36691e8bdf

View file

@ -33,12 +33,16 @@
#define ANSI_COLOR_RESET "\x1b[0m"
#define color_printf(format, args...) \
fprintf (stdout, "\r" ANSI_COLOR_YELLOW format ANSI_COLOR_RESET "\r\n", ## args); \
fflush(stdout);
{ \
fprintf (stdout, "\r" ANSI_COLOR_YELLOW format ANSI_COLOR_RESET "\r\n", ## args); \
fflush(stdout); \
}
#define warning_printf(format, args...) \
fprintf (stdout, "\rWarning: " format "\r\n", ## args); \
fflush(stdout);
{ \
fprintf (stdout, "\rWarning: " format "\r\n", ## args); \
fflush(stdout); \
}
#ifdef DEBUG
#define debug_printf(format, args...) \