diff options
author | Chris Robinson <chris.kcat@gmail.com> | 2022-12-06 01:48:58 -0800 |
---|---|---|
committer | Chris Robinson <chris.kcat@gmail.com> | 2022-12-06 01:48:58 -0800 |
commit | 4d757068c4784a18026089fd812949703bd9470a (patch) | |
tree | 1a1c2f819d14acc7a32cc26f10ffa1227c72b744 /core/logging.h | |
parent | 25a6814cf36bee82b24cb1b5f40769e66c327db4 (diff) |
Avoid using a macro to wrap standard attributes
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 87f1c0f5..e90de661 100644 --- a/core/logging.h +++ b/core/logging.h @@ -19,17 +19,17 @@ extern FILE *gLogFile; #if !defined(_WIN32) && !defined(__ANDROID__) #define TRACE(...) do { \ - if(gLogLevel >= LogLevel::Trace) [[alunlikely]] \ + if(gLogLevel >= LogLevel::Trace) [[unlikely]] \ fprintf(gLogFile, "[ALSOFT] (II) " __VA_ARGS__); \ } while(0) #define WARN(...) do { \ - if(gLogLevel >= LogLevel::Warning) [[alunlikely]] \ + if(gLogLevel >= LogLevel::Warning) [[unlikely]] \ fprintf(gLogFile, "[ALSOFT] (WW) " __VA_ARGS__); \ } while(0) #define ERR(...) do { \ - if(gLogLevel >= LogLevel::Error) [[alunlikely]] \ + if(gLogLevel >= LogLevel::Error) [[unlikely]] \ fprintf(gLogFile, "[ALSOFT] (EE) " __VA_ARGS__); \ } while(0) |