aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMain.h
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r--OpenAL32/Include/alMain.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 5ee90db6..719354f2 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -701,10 +701,16 @@ enum LogLevel {
NoLog,
LogError,
LogWarning,
- LogTrace
+ LogTrace,
+ LogRef
};
extern enum LogLevel LogLevel;
+#define TRACEREF(...) do { \
+ if(LogLevel >= LogRef) \
+ AL_PRINT(__VA_ARGS__); \
+} while(0)
+
#define TRACE(...) do { \
if(LogLevel >= LogTrace) \
AL_PRINT(__VA_ARGS__); \