summaryrefslogtreecommitdiff
path: root/include/engine
diff options
context:
space:
mode:
author0scar <qgt268@alumni.ku.dk>2023-07-28 09:45:33 +0000
committer0scar <qgt268@alumni.ku.dk>2023-07-28 10:30:42 +0000
commit22db1a2e1b41bed7d5083ce68888a583881d58bf (patch)
treeb42b453e3911e49cec026929f81cbf5a289313b6 /include/engine
parent6c16f339224a4736f4ed57d15bb3e5f968a635ab (diff)
Flesh out cmakelists & streamline some functions
Diffstat (limited to 'include/engine')
-rw-r--r--include/engine/logging.h6
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, ...);