summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2021-08-05 22:29:45 -0700
committerGravatar GitHub2021-08-05 22:29:45 -0700
commit42d8e08f7847af3b8e8ceea14ad7193fdbdf53ef (patch)
tree8c63dc1dc09dfeb650e84841e1f245875502edcf /src
parentMerge pull request #6813 from Morph1984/hex-string-to-uuid (diff)
parentassert: Verify formatting (diff)
downloadyuzu-42d8e08f7847af3b8e8ceea14ad7193fdbdf53ef.tar.gz
yuzu-42d8e08f7847af3b8e8ceea14ad7193fdbdf53ef.tar.xz
yuzu-42d8e08f7847af3b8e8ceea14ad7193fdbdf53ef.zip
Merge pull request #6822 from yzct12345/clion-assert
assert: Avoid empty macros
Diffstat (limited to 'src')
-rw-r--r--src/common/assert.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common/assert.h b/src/common/assert.h
index b3ba35c0f..33060d865 100644
--- a/src/common/assert.h
+++ b/src/common/assert.h
@@ -52,8 +52,12 @@ assert_noinline_call(const Fn& fn) {
52#define DEBUG_ASSERT(_a_) ASSERT(_a_) 52#define DEBUG_ASSERT(_a_) ASSERT(_a_)
53#define DEBUG_ASSERT_MSG(_a_, ...) ASSERT_MSG(_a_, __VA_ARGS__) 53#define DEBUG_ASSERT_MSG(_a_, ...) ASSERT_MSG(_a_, __VA_ARGS__)
54#else // not debug 54#else // not debug
55#define DEBUG_ASSERT(_a_) 55#define DEBUG_ASSERT(_a_) \
56#define DEBUG_ASSERT_MSG(_a_, _desc_, ...) 56 do { \
57 } while (0)
58#define DEBUG_ASSERT_MSG(_a_, _desc_, ...) \
59 do { \
60 } while (0)
57#endif 61#endif
58 62
59#define UNIMPLEMENTED() ASSERT_MSG(false, "Unimplemented code!") 63#define UNIMPLEMENTED() ASSERT_MSG(false, "Unimplemented code!")