From fad991c48e6690658a80103306183c2b1fb578df Mon Sep 17 00:00:00 2001 From: lizzie Date: Fri, 8 Aug 2025 22:52:45 +0100 Subject: [PATCH] [dynarmic] fix pch gen Signed-off-by: lizzie --- src/dynarmic/src/dynarmic/common/assert.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/dynarmic/src/dynarmic/common/assert.h b/src/dynarmic/src/dynarmic/common/assert.h index 36177c302f..9973b8948d 100644 --- a/src/dynarmic/src/dynarmic/common/assert.h +++ b/src/dynarmic/src/dynarmic/common/assert.h @@ -14,19 +14,34 @@ template assert_terminate_impl(expr_str, msg, fmt::make_format_args(args...)); } +// Temporary until MCL is fully removed +#ifndef ASSERT_MSG #define ASSERT_MSG(_a_, ...) \ ([&]() { \ if (!(_a_)) [[unlikely]] { \ assert_terminate(#_a_, __VA_ARGS__); \ } \ }()) +#endif +#ifndef ASSERT #define ASSERT(_a_) ASSERT_MSG(_a_, "") +#endif +#ifndef UNREACHABLE #define UNREACHABLE() ASSERT_MSG(false, "unreachable") +#endif #ifdef _DEBUG +#ifndef DEBUG_ASSERT #define DEBUG_ASSERT(_a_) ASSERT(_a_) +#endif +#ifndef DEBUG_ASSERT_MSG #define DEBUG_ASSERT_MSG(_a_, ...) ASSERT_MSG(_a_, __VA_ARGS__) +#endif #else // not debug +#ifndef DEBUG_ASSERT #define DEBUG_ASSERT(_a_) +#endif +#ifndef DEBUG_ASSERT_MSG #define DEBUG_ASSERT_MSG(_a_, _desc_, ...) #endif +#endif -- 2.39.5