aboutsummaryrefslogtreecommitdiffstats
path: root/core/logging.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-12-05 15:17:39 -0800
committerChris Robinson <[email protected]>2022-12-05 15:17:39 -0800
commit4de5c7dfeebc2335ad3d7c2dd4905284677a68c9 (patch)
tree849a6f5dd7b284e1766671cc13769d257f20ea03 /core/logging.h
parentdf6d61dd40b602af55f903564358b083bb8b37e4 (diff)
Avoid some uses of the LIKELY/UNLIKELY macros
Diffstat (limited to 'core/logging.h')
-rw-r--r--core/logging.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/logging.h b/core/logging.h
index 81465929..87f1c0f5 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 UNLIKELY(gLogLevel >= LogLevel::Trace) \
+ if(gLogLevel >= LogLevel::Trace) [[alunlikely]] \
fprintf(gLogFile, "[ALSOFT] (II) " __VA_ARGS__); \
} while(0)
#define WARN(...) do { \
- if UNLIKELY(gLogLevel >= LogLevel::Warning) \
+ if(gLogLevel >= LogLevel::Warning) [[alunlikely]] \
fprintf(gLogFile, "[ALSOFT] (WW) " __VA_ARGS__); \
} while(0)
#define ERR(...) do { \
- if UNLIKELY(gLogLevel >= LogLevel::Error) \
+ if(gLogLevel >= LogLevel::Error) [[alunlikely]] \
fprintf(gLogFile, "[ALSOFT] (EE) " __VA_ARGS__); \
} while(0)