aboutsummaryrefslogtreecommitdiffstats
path: root/alc/logging.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-08-04 11:59:14 -0700
committerChris Robinson <[email protected]>2019-08-04 11:59:14 -0700
commit2fa2c35bdc2a09d5e856bb12ad6dff556bbe65a8 (patch)
tree4a6c7a5f2a80ad7870e9028e48b8b99e558042f5 /alc/logging.h
parent7897de31d0f75f4ac1d91fe8c470953e9f54d151 (diff)
Modify LIKELY and UNLIKELY to not need extra parenthesis
Diffstat (limited to 'alc/logging.h')
-rw-r--r--alc/logging.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/alc/logging.h b/alc/logging.h
index 0bb0c87b..8a3e75e6 100644
--- a/alc/logging.h
+++ b/alc/logging.h
@@ -39,24 +39,24 @@ enum LogLevel {
extern LogLevel gLogLevel;
#define TRACEREF(...) do { \
- if(UNLIKELY(gLogLevel >= LogRef)) \
+ if UNLIKELY(gLogLevel >= LogRef) \
AL_PRINT("(--)", __VA_ARGS__); \
} while(0)
#define TRACE(...) do { \
- if(UNLIKELY(gLogLevel >= LogTrace)) \
+ if UNLIKELY(gLogLevel >= LogTrace) \
AL_PRINT("(II)", __VA_ARGS__); \
LOG_ANDROID(ANDROID_LOG_DEBUG, __VA_ARGS__); \
} while(0)
#define WARN(...) do { \
- if(UNLIKELY(gLogLevel >= LogWarning)) \
+ if UNLIKELY(gLogLevel >= LogWarning) \
AL_PRINT("(WW)", __VA_ARGS__); \
LOG_ANDROID(ANDROID_LOG_WARN, __VA_ARGS__); \
} while(0)
#define ERR(...) do { \
- if(UNLIKELY(gLogLevel >= LogError)) \
+ if UNLIKELY(gLogLevel >= LogError) \
AL_PRINT("(EE)", __VA_ARGS__); \
LOG_ANDROID(ANDROID_LOG_ERROR, __VA_ARGS__); \
} while(0)