aboutsummaryrefslogtreecommitdiffstats
path: root/alc/logging.h
diff options
context:
space:
mode:
Diffstat (limited to 'alc/logging.h')
-rw-r--r--alc/logging.h47
1 files changed, 0 insertions, 47 deletions
diff --git a/alc/logging.h b/alc/logging.h
deleted file mode 100644
index 32a877e1..00000000
--- a/alc/logging.h
+++ /dev/null
@@ -1,47 +0,0 @@
-#ifndef LOGGING_H
-#define LOGGING_H
-
-#include <stdio.h>
-
-#include "opthelpers.h"
-
-
-enum class LogLevel {
- Disable,
- Error,
- Warning,
- Trace
-};
-extern LogLevel gLogLevel;
-
-extern FILE *gLogFile;
-
-
-#if !defined(_WIN32) && !defined(__ANDROID__)
-#define TRACE(...) do { \
- if UNLIKELY(gLogLevel >= LogLevel::Trace) \
- fprintf(gLogFile, "[ALSOFT] (II) " __VA_ARGS__); \
-} while(0)
-
-#define WARN(...) do { \
- if UNLIKELY(gLogLevel >= LogLevel::Warning) \
- fprintf(gLogFile, "[ALSOFT] (WW) " __VA_ARGS__); \
-} while(0)
-
-#define ERR(...) do { \
- if UNLIKELY(gLogLevel >= LogLevel::Error) \
- fprintf(gLogFile, "[ALSOFT] (EE) " __VA_ARGS__); \
-} while(0)
-
-#else
-
-[[gnu::format(printf,3,4)]] void al_print(LogLevel level, FILE *logfile, const char *fmt, ...);
-
-#define TRACE(...) al_print(LogLevel::Trace, gLogFile, "[ALSOFT] (II) " __VA_ARGS__)
-
-#define WARN(...) al_print(LogLevel::Warning, gLogFile, "[ALSOFT] (WW) " __VA_ARGS__)
-
-#define ERR(...) al_print(LogLevel::Error, gLogFile, "[ALSOFT] (EE) " __VA_ARGS__)
-#endif
-
-#endif /* LOGGING_H */