aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/logging.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-09 15:07:44 -0800
committerChris Robinson <[email protected]>2018-12-09 15:07:44 -0800
commit6c8f45b5f6eb2c94427078a4fb527f02d44b9f65 (patch)
treeb367e3f1035290ae0cdafeeb54965c522fce05aa /Alc/logging.h
parentd7d98708391e4701f3e27794982af55436ba6d41 (diff)
Rename a couple global variables
Avoid clashing with an enum name
Diffstat (limited to 'Alc/logging.h')
-rw-r--r--Alc/logging.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/Alc/logging.h b/Alc/logging.h
index 2d9f4063..f493d973 100644
--- a/Alc/logging.h
+++ b/Alc/logging.h
@@ -14,10 +14,10 @@
extern "C" {
#endif
-extern FILE *LogFile;
+extern FILE *gLogFile;
#if defined(__GNUC__) && !defined(_WIN32)
-#define AL_PRINT(T, MSG, ...) fprintf(LogFile, "AL lib: %s %s: " MSG, T, __FUNCTION__ , ## __VA_ARGS__)
+#define AL_PRINT(T, MSG, ...) fprintf(gLogFile, "AL lib: %s %s: " MSG, T, __FUNCTION__ , ## __VA_ARGS__)
#else
void al_print(const char *type, const char *func, const char *fmt, ...) DECL_FORMAT(printf, 3,4);
#define AL_PRINT(T, ...) al_print((T), __FUNCTION__, __VA_ARGS__)
@@ -37,27 +37,27 @@ enum LogLevel {
LogTrace,
LogRef
};
-extern enum LogLevel LogLevel;
+extern LogLevel gLogLevel;
#define TRACEREF(...) do { \
- if(LogLevel >= LogRef) \
+ if(gLogLevel >= LogRef) \
AL_PRINT("(--)", __VA_ARGS__); \
} while(0)
#define TRACE(...) do { \
- if(LogLevel >= LogTrace) \
+ if(gLogLevel >= LogTrace) \
AL_PRINT("(II)", __VA_ARGS__); \
LOG_ANDROID(ANDROID_LOG_DEBUG, __VA_ARGS__); \
} while(0)
#define WARN(...) do { \
- if(LogLevel >= LogWarning) \
+ if(gLogLevel >= LogWarning) \
AL_PRINT("(WW)", __VA_ARGS__); \
LOG_ANDROID(ANDROID_LOG_WARN, __VA_ARGS__); \
} while(0)
#define ERR(...) do { \
- if(LogLevel >= LogError) \
+ if(gLogLevel >= LogError) \
AL_PRINT("(EE)", __VA_ARGS__); \
LOG_ANDROID(ANDROID_LOG_ERROR, __VA_ARGS__); \
} while(0)