summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-11-21 00:03:00 +0100
committerLioncash <mathew1800@gmail.com>2018-11-21 00:15:37 +0100
commit9dcc229dfeee5061b69bce200d3256ed8fa9304e (patch)
treed03ca3a8776111f0e52e3a8e82b937f9aeb18708 /src
parentcommon/assert: Make the UNIMPLEMENTED macro properly assert (diff)
downloadyuzu-9dcc229dfeee5061b69bce200d3256ed8fa9304e.tar
yuzu-9dcc229dfeee5061b69bce200d3256ed8fa9304e.tar.gz
yuzu-9dcc229dfeee5061b69bce200d3256ed8fa9304e.tar.bz2
yuzu-9dcc229dfeee5061b69bce200d3256ed8fa9304e.tar.lz
yuzu-9dcc229dfeee5061b69bce200d3256ed8fa9304e.tar.xz
yuzu-9dcc229dfeee5061b69bce200d3256ed8fa9304e.tar.zst
yuzu-9dcc229dfeee5061b69bce200d3256ed8fa9304e.zip
Diffstat (limited to '')
-rw-r--r--src/common/assert.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/assert.h b/src/common/assert.h
index 8ec597914..6002f7ab1 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__)