Skip to content

Commit

Permalink
Update panic.h
Browse files Browse the repository at this point in the history
  • Loading branch information
apache-hb committed Sep 13, 2024
1 parent f55a532 commit 3e1c506
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/common/base/include/base/panic.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ CT_BASE_API CT_NORETURN ctu_vpanic(source_info_t location, STA_FORMAT_STRING con

#if CTU_ASSERTS
# define CTASSERTF(expr, ...) CTASSERTF_ALWAYS(expr, __VA_ARGS__)
#elif defined(__cplusplus)
// in C++ assume is very picky about the expression
# define CTASSERTF(expr, ...) ((void)0)
#else
# define CTASSERTF(expr, ...) CT_ASSUME(expr)
#endif
Expand Down

0 comments on commit 3e1c506

Please sign in to comment.