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