From ec9e805a87c795aa9419a76aef5dcfe3507055af Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Wed, 9 Aug 2023 20:38:59 +0200 Subject: [PATCH] fix re_assert_se fallback --- include/re_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/re_types.h b/include/re_types.h index 00b0347e9..7fac94623 100644 --- a/include/re_types.h +++ b/include/re_types.h @@ -296,7 +296,7 @@ typedef int re_sock_t; #if defined(RELEASE) || defined(NDEBUG) #define re_assert(expr) (void)0 -#define re_assert_se(expr) do(expr) while(false) +#define re_assert_se(expr) do{(void)(expr);} while(false) #else #define re_assert(expr) assert(expr) #define re_assert_se(expr) assert(expr)