summaryrefslogtreecommitdiffhomepage
path: root/compat/assert.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'compat/assert.hpp')
-rw-r--r--compat/assert.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/compat/assert.hpp b/compat/assert.hpp
index 3a6fed34..a96b9e03 100644
--- a/compat/assert.hpp
+++ b/compat/assert.hpp
@@ -53,6 +53,12 @@ namespace floormat {
} \
} while(false)
+#ifndef FM_NO_DEBUG
+#define fm_assert_debug(...) fm_assert(__VA_ARGS__)
+#else
+#define fm_assert_debug(...) void()
+#endif
+
#define ASSERT_EXPR(var, expr, cond) \
([&] { \
decltype(auto) var = (expr); \