summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-11-21 01:11:30 +0100
committerGitHub <noreply@github.com>2018-11-21 01:11:30 +0100
commit1d0604e33cfbed304db269b089e4dcb5569e926c (patch)
treeebaa8993e07ab003dc74d56941903cec4b38cdf9
parentMerge pull request #1749 from lioncash/gc-info (diff)
parentcommon/assert: Add UNIMPLEMENTED_IF and UNIMPLEMENTED_IF_MSG for conditional assertions (diff)
downloadyuzu-1d0604e33cfbed304db269b089e4dcb5569e926c.tar
yuzu-1d0604e33cfbed304db269b089e4dcb5569e926c.tar.gz
yuzu-1d0604e33cfbed304db269b089e4dcb5569e926c.tar.bz2
yuzu-1d0604e33cfbed304db269b089e4dcb5569e926c.tar.lz
yuzu-1d0604e33cfbed304db269b089e4dcb5569e926c.tar.xz
yuzu-1d0604e33cfbed304db269b089e4dcb5569e926c.tar.zst
yuzu-1d0604e33cfbed304db269b089e4dcb5569e926c.zip
Diffstat (limited to '')
-rw-r--r--src/common/assert.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/assert.h b/src/common/assert.h
index 0d4eddc19..6002f7ab1 100644
--- a/src/common/assert.h
+++ b/src/common/assert.h
@@ -52,5 +52,8 @@ __declspec(noinline, noreturn)
#define DEBUG_ASSERT_MSG(_a_, _desc_, ...)
#endif
-#define UNIMPLEMENTED() LOG_CRITICAL(Debug, "Unimplemented code!")
+#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__)