BAN: Fix dwarnln and derrorln stop color
This commit is contained in:
parent
8bfacb0091
commit
b2a4797d16
|
@ -21,15 +21,17 @@
|
|||
#define dwarnln(...) \
|
||||
do { \
|
||||
BAN::Formatter::print(__debug_putchar, "\e[33m"); \
|
||||
dprintln(__VA_ARGS__); \
|
||||
BAN::Formatter::print(__debug_putchar, __VA_ARGS__); \
|
||||
BAN::Formatter::print(__debug_putchar, "\e[m"); \
|
||||
fflush(stddbg); \
|
||||
} while(false)
|
||||
|
||||
#define derrorln(...) \
|
||||
do { \
|
||||
BAN::Formatter::print(__debug_putchar, "\e[31m"); \
|
||||
dprintln(__VA_ARGS__); \
|
||||
BAN::Formatter::print(__debug_putchar, __VA_ARGS__); \
|
||||
BAN::Formatter::print(__debug_putchar, "\e[m"); \
|
||||
fflush(stddbg); \
|
||||
} while(false)
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue