VERY experimental Nintendo Switch 2 emulator
C++
common/assert: Add UNIMPLEMENTED_IF and UNIMPLEMENTED_IF_MSG for conditional assertions
Lioncashdd8172d44009
diff --git a/src/common/assert.h b/src/common/assert.hindex 8ec597914a..6002f7ab16 100644--- a/src/common/assert.h+++ b/src/common/assert.h@@ -54,3 +54,6 @@ __declspec(noinline, noreturn)#define UNIMPLEMENTED() ASSERT_MSG(false, "Unimplemented code!")#define UNIMPLEMENTED_MSG(...) ASSERT_MSG(false, __VA_ARGS__)++#define UNIMPLEMENTED_IF(cond) ASSERT_MSG(!(cond), "Unimplemented code!")+#define UNIMPLEMENTED_IF_MSG(cond, ...) ASSERT_MSG(!(cond), __VA_ARGS__)