diff options
| author | crueter <crueter@eden-emu.dev> | 2025-08-09 01:08:55 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2025-08-09 01:08:55 +0200 |
| commit | a3cf780a3a4757d2f159b809675fbfbee18cec00 (patch) | |
| tree | 7f6559285ed7b28e2885c737508a2da235b7994f /src | |
| parent | 0705ba0b473b64ac0c676327927129e3ea4680d0 (diff) | |
[dynarmic] fix pch gen (#231)
Signed-off-by: lizzie <lizzie@eden-emu.dev>
Co-authored-by: lizzie <lizzie@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/231
Reviewed-by: Lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'src')
| -rw-r--r-- | src/dynarmic/src/dynarmic/common/assert.h | 15 |
1 files changed, 15 insertions, 0 deletions
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<typename... Ts> 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 |
