Skip to content

Commit

Permalink
Fix which macro is used
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Jun 1, 2024
1 parent af18b7c commit 32f87ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/libassert/assert.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ namespace libassert {
#define LIBASSERT_INVOKE_PANIC(name, type, ...) \
do { \
libassert::ERROR_ASSERTION_FAILURE_IN_CONSTEXPR_CONTEXT(); \
LIBASSERT_BREAKPOINT_IF_DEBUGGING(); \
LIBASSERT_BREAKPOINT_IF_DEBUGGING_ON_FAIL(); \
LIBASSERT_STATIC_DATA(name, libassert::assert_type::type, "", __VA_ARGS__) \
libassert::detail::process_panic( \
libassert_params \
Expand Down Expand Up @@ -805,7 +805,7 @@ namespace libassert {
/* https://godbolt.org/z/Kq8Wb6q5j https://godbolt.org/z/nMnqnsMYx */ \
if(LIBASSERT_STRONG_EXPECT(!LIBASSERT_STATIC_CAST_TO_BOOL(libassert_value), 0)) { \
libassert::ERROR_ASSERTION_FAILURE_IN_CONSTEXPR_CONTEXT(); \
LIBASSERT_BREAKPOINT_IF_DEBUGGING(); \
LIBASSERT_BREAKPOINT_IF_DEBUGGING_ON_FAIL(); \
failaction \
LIBASSERT_STATIC_DATA(name, libassert::assert_type::type, #expr, __VA_ARGS__) \
if constexpr(sizeof libassert_decomposer > 32) { \
Expand Down

0 comments on commit 32f87ce

Please sign in to comment.