mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +02:00
Cleanup print macros
This commit is contained in:
parent
14e70bd718
commit
36691e8bdf
1 changed files with 8 additions and 4 deletions
|
|
@ -33,12 +33,16 @@
|
||||||
#define ANSI_COLOR_RESET "\x1b[0m"
|
#define ANSI_COLOR_RESET "\x1b[0m"
|
||||||
|
|
||||||
#define color_printf(format, args...) \
|
#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...) \
|
#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
|
#ifdef DEBUG
|
||||||
#define debug_printf(format, args...) \
|
#define debug_printf(format, args...) \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue