diff --git a/BAN/include/BAN/Debug.h b/BAN/include/BAN/Debug.h index 0a26ca9664..7adbf08d06 100644 --- a/BAN/include/BAN/Debug.h +++ b/BAN/include/BAN/Debug.h @@ -18,18 +18,20 @@ fflush(stddbg); \ } while (false) -#define dwarnln(...) \ - do { \ - BAN::Formatter::print(__debug_putchar, "\e[33m"); \ - dprintln(__VA_ARGS__); \ - BAN::Formatter::print(__debug_putchar, "\e[m"); \ +#define dwarnln(...) \ + do { \ + BAN::Formatter::print(__debug_putchar, "\e[33m"); \ + 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, "\e[m"); \ +#define derrorln(...) \ + do { \ + BAN::Formatter::print(__debug_putchar, "\e[31m"); \ + BAN::Formatter::print(__debug_putchar, __VA_ARGS__); \ + BAN::Formatter::print(__debug_putchar, "\e[m"); \ + fflush(stddbg); \ } while(false) #endif