mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-07 07:29:59 +01:00
Common: DEBUG_ASSERTs weren't enabled
This commit is contained in:
parent
6f6f60c61b
commit
d2aeb56503
@ -40,12 +40,12 @@ static void assert_noinline_call(const Fn& fn) {
|
|||||||
#define UNREACHABLE() ASSERT_MSG(false, "Unreachable code!")
|
#define UNREACHABLE() ASSERT_MSG(false, "Unreachable code!")
|
||||||
#define UNREACHABLE_MSG(...) ASSERT_MSG(false, __VA_ARGS__)
|
#define UNREACHABLE_MSG(...) ASSERT_MSG(false, __VA_ARGS__)
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef NDEBUG
|
||||||
#define DEBUG_ASSERT(_a_) ASSERT(_a_)
|
|
||||||
#define DEBUG_ASSERT_MSG(_a_, ...) ASSERT_MSG(_a_, __VA_ARGS__)
|
|
||||||
#else // not debug
|
|
||||||
#define DEBUG_ASSERT(_a_)
|
#define DEBUG_ASSERT(_a_)
|
||||||
#define DEBUG_ASSERT_MSG(_a_, ...)
|
#define DEBUG_ASSERT_MSG(_a_, ...)
|
||||||
|
#else // debug
|
||||||
|
#define DEBUG_ASSERT(_a_) ASSERT(_a_)
|
||||||
|
#define DEBUG_ASSERT_MSG(_a_, ...) ASSERT_MSG(_a_, __VA_ARGS__)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define UNIMPLEMENTED() DEBUG_ASSERT_MSG(false, "Unimplemented code!")
|
#define UNIMPLEMENTED() DEBUG_ASSERT_MSG(false, "Unimplemented code!")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user