aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-20 12:24:23 -0700
committerChris Robinson <[email protected]>2011-09-20 12:24:23 -0700
commite43470da7a590ab026006a4f35caaff134c21455 (patch)
tree7d1f594ab1b035c8f7b49a5f3982965afa6c9374 /OpenAL32/Include
parentd3e7a26db6c51410147eeeee8113cd7eac5d9668 (diff)
Make a separate log level to trace reference counts, to avoid log spam for traces
Diffstat (limited to 'OpenAL32/Include')
-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__); \