From d692e2a2029449bca80ff47abe579845ca46747a Mon Sep 17 00:00:00 2001 From: Henrik Stickann <4376396-Mithradir@users.noreply.gitlab.com> Date: Fri, 13 Jan 2023 14:03:09 +0100 Subject: [PATCH] Add extra expr for use with STA_ASSERT --- include/sta/assert.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/sta/assert.hpp b/include/sta/assert.hpp index c695d3b..a3aa2a8 100644 --- a/include/sta/assert.hpp +++ b/include/sta/assert.hpp @@ -149,6 +149,9 @@ namespace sta */ # define STA_ASSERT_COND_MSG(cond, expr, msg) ( (void)( (cond) ? STA_ASSERT_MSG(expr, msg) ) ) + +# define STA_ASSERT_EXTRA(expr) expr; + #else // !STA_ASSERT_ENABLE # define STA_ASSERT(expr) ((void)0) @@ -156,6 +159,8 @@ namespace sta # define STA_ASSERT_COND(cond, expr) ((void)0) # define STA_ASSERT_COND_MSG(cond, expr, msg) ((void)0) +# define STA_ASSERT_EXTRA(expr) ((void)0) + #endif // !STA_ASSERT_ENABLE