diff options
Diffstat (limited to 'core/logging.h')
-rw-r--r-- | core/logging.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/logging.h b/core/logging.h index 2853afbd..c729ef4e 100644 --- a/core/logging.h +++ b/core/logging.h @@ -23,7 +23,7 @@ extern FILE *gLogFile; #endif void al_print(LogLevel level, FILE *logfile, const char *fmt, ...); -#if !defined(_WIN32) && !defined(__ANDROID__) +#if (!defined(_WIN32) || defined(NDEBUG)) && !defined(__ANDROID__) #define TRACE(...) do { \ if(gLogLevel >= LogLevel::Trace) [[unlikely]] \ al_print(LogLevel::Trace, gLogFile, __VA_ARGS__); \ |