From 32f87ceca7ed88a6527fcdc07f3d219bc1eef161 Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Fri, 31 May 2024 19:57:19 -0500 Subject: [PATCH] Fix which macro is used --- include/libassert/assert.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libassert/assert.hpp b/include/libassert/assert.hpp index aca5153d..0a57b05d 100644 --- a/include/libassert/assert.hpp +++ b/include/libassert/assert.hpp @@ -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 \ @@ -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) { \