summaryrefslogtreecommitdiffstats
path: root/src/common/assert.h
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2016-04-11 01:22:41 +0200
committerSam Spilsbury <smspillaz@gmail.com>2016-04-23 05:54:02 +0200
commit205e8f9f9ece7ee335a1987aa4a1b72f7409abd5 (patch)
tree453c387e71a3bae2dd6434677614c1664b3b277a /src/common/assert.h
parentpica: Handle default lighting case (diff)
downloadyuzu-205e8f9f9ece7ee335a1987aa4a1b72f7409abd5.tar
yuzu-205e8f9f9ece7ee335a1987aa4a1b72f7409abd5.tar.gz
yuzu-205e8f9f9ece7ee335a1987aa4a1b72f7409abd5.tar.bz2
yuzu-205e8f9f9ece7ee335a1987aa4a1b72f7409abd5.tar.lz
yuzu-205e8f9f9ece7ee335a1987aa4a1b72f7409abd5.tar.xz
yuzu-205e8f9f9ece7ee335a1987aa4a1b72f7409abd5.tar.zst
yuzu-205e8f9f9ece7ee335a1987aa4a1b72f7409abd5.zip
Diffstat (limited to '')
-rw-r--r--src/common/assert.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/assert.h b/src/common/assert.h
index 6849778b7..d7f19f5eb 100644
--- a/src/common/assert.h
+++ b/src/common/assert.h
@@ -39,6 +39,7 @@ static void assert_noinline_call(const Fn& fn) {
}); } while (0)
#define UNREACHABLE() ASSERT_MSG(false, "Unreachable code!")
+#define UNREACHABLE_MSG(_a_, ...) ASSERT_MSG(false, _a_, __VA_ARGS__)
#ifdef _DEBUG
#define DEBUG_ASSERT(_a_) ASSERT(_a_)
@@ -49,3 +50,4 @@ static void assert_noinline_call(const Fn& fn) {
#endif
#define UNIMPLEMENTED() DEBUG_ASSERT_MSG(false, "Unimplemented code!")
+#define UNIMPLEMENTED_MSG(_a_, ...) ASSERT_MSG(false, _a_, __VA_ARGS__) \ No newline at end of file