diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/engine/logging.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/engine/logging.h b/include/engine/logging.h index 1365a5b..0ac5025 100644 --- a/include/engine/logging.h +++ b/include/engine/logging.h @@ -34,8 +34,12 @@ void LOG(const char *fmt, ...); void INFO_(const char *fmt, ...); void INFO(const char *fmt, ...); -#define _DEBUG(...) __DEBUG(__FILE__,__LINE__, __func__, __VA_ARGS__) +#ifdef DAW_BUILD_DEBUG +#define DEBUG(fmt, ...) __DEBUG(__FILE__,__LINE__, __func__, fmt, __VA_ARGS__) void __DEBUG(const char* file, const i32 line, const char* func, const char *fmt, ...); +#else +#define DEBUG(...) +#endif void WARN(const char *fmt, ...); |
