From 63cad921af8bb3dddb0fea825df9c6ba78dfaf80 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 28 Oct 2022 03:12:39 +0200 Subject: add debug assert function --- compat/assert.hpp | 6 ++++++ 1 file changed, 6 insertions(+) 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); \ -- cgit v1.2.3