Add extra expr for use with STA_ASSERT

This commit is contained in:
Henrik Stickann 2023-01-13 14:03:09 +01:00
parent 32819c1108
commit d692e2a202

View File

@ -149,6 +149,9 @@ namespace sta
*/ */
# define STA_ASSERT_COND_MSG(cond, expr, msg) ( (void)( (cond) ? STA_ASSERT_MSG(expr, msg) ) ) # 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 #else // !STA_ASSERT_ENABLE
# define STA_ASSERT(expr) ((void)0) # define STA_ASSERT(expr) ((void)0)
@ -156,6 +159,8 @@ namespace sta
# define STA_ASSERT_COND(cond, expr) ((void)0) # define STA_ASSERT_COND(cond, expr) ((void)0)
# define STA_ASSERT_COND_MSG(cond, expr, msg) ((void)0) # define STA_ASSERT_COND_MSG(cond, expr, msg) ((void)0)
# define STA_ASSERT_EXTRA(expr) ((void)0)
#endif // !STA_ASSERT_ENABLE #endif // !STA_ASSERT_ENABLE