diff options
Diffstat (limited to 'core/logging.h')
-rw-r--r-- | core/logging.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/logging.h b/core/logging.h index c729ef4e..f4b6ab56 100644 --- a/core/logging.h +++ b/core/logging.h @@ -25,17 +25,17 @@ void al_print(LogLevel level, FILE *logfile, const char *fmt, ...); #if (!defined(_WIN32) || defined(NDEBUG)) && !defined(__ANDROID__) #define TRACE(...) do { \ - if(gLogLevel >= LogLevel::Trace) [[unlikely]] \ + if(gLogLevel >= LogLevel::Trace) UNLIKELY \ al_print(LogLevel::Trace, gLogFile, __VA_ARGS__); \ } while(0) #define WARN(...) do { \ - if(gLogLevel >= LogLevel::Warning) [[unlikely]] \ + if(gLogLevel >= LogLevel::Warning) UNLIKELY \ al_print(LogLevel::Warning, gLogFile, __VA_ARGS__); \ } while(0) #define ERR(...) do { \ - if(gLogLevel >= LogLevel::Error) [[unlikely]] \ + if(gLogLevel >= LogLevel::Error) UNLIKELY \ al_print(LogLevel::Error, gLogFile, __VA_ARGS__); \ } while(0) |