mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-10 00:36:00 +00:00
Add extra expr for use with STA_ASSERT
This commit is contained in:
parent
32819c1108
commit
d692e2a202
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user