Deal with errors generated when RELEASE build made

This commit is contained in:
2025-06-11 07:21:21 +01:00
parent ba7e08122e
commit 34e4d42876
4 changed files with 8 additions and 5 deletions

4
base.h
View File

@@ -45,7 +45,7 @@ static_assert(sizeof(f64) == sizeof(u64));
#define TODO(MSG) (assert(false && MSG));
#ifndef DEBUG
#define DEBUG 2
#define DEBUG 0
#endif
static inline void debug(char *fmt, ...)
@@ -55,6 +55,8 @@ static inline void debug(char *fmt, ...)
va_start(ap, fmt);
vprintf(fmt, ap);
va_end(ap);
#else
(void)fmt;
#endif
}