aboutsummaryrefslogtreecommitdiffstats
path: root/cheesemap.h
diff options
context:
space:
mode:
Diffstat (limited to 'cheesemap.h')
-rw-r--r--cheesemap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cheesemap.h b/cheesemap.h
index a309741..f80ba9d 100644
--- a/cheesemap.h
+++ b/cheesemap.h
@@ -16,11 +16,15 @@ extern "C" {
_Noreturn void CM_PANIC_SYM(const char* file, uint32_t line, const char* fmt,
...);
+#ifdef NDEBUG
+#define cm_assert(cond)
+#else
#define cm_assert(cond) \
do { \
if (!(cond)) \
CM_PANIC_SYM(__FILE__, __LINE__, "cm_assertion failed: %s", #cond); \
} while (0)
+#endif
#ifdef CM_ENABLE_SSE2
#include <emmintrin.h>