diff options
author | yzct12345 <87620833+yzct12345@users.noreply.github.com> | 2021-08-05 19:46:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-05 19:46:22 +0200 |
commit | 7e846be3760c579e21ae684fc53c9dcd21b5a415 (patch) | |
tree | 9c543db14cb75840ca69dd049f046c5790d37140 /src | |
parent | assert: Avoid empty macros (diff) | |
download | yuzu-7e846be3760c579e21ae684fc53c9dcd21b5a415.tar yuzu-7e846be3760c579e21ae684fc53c9dcd21b5a415.tar.gz yuzu-7e846be3760c579e21ae684fc53c9dcd21b5a415.tar.bz2 yuzu-7e846be3760c579e21ae684fc53c9dcd21b5a415.tar.lz yuzu-7e846be3760c579e21ae684fc53c9dcd21b5a415.tar.xz yuzu-7e846be3760c579e21ae684fc53c9dcd21b5a415.tar.zst yuzu-7e846be3760c579e21ae684fc53c9dcd21b5a415.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/common/assert.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common/assert.h b/src/common/assert.h index f71beec8e..33060d865 100644 --- a/src/common/assert.h +++ b/src/common/assert.h @@ -52,8 +52,12 @@ assert_noinline_call(const Fn& fn) { #define DEBUG_ASSERT(_a_) ASSERT(_a_) #define DEBUG_ASSERT_MSG(_a_, ...) ASSERT_MSG(_a_, __VA_ARGS__) #else // not debug -#define DEBUG_ASSERT(_a_) do {} while (0) -#define DEBUG_ASSERT_MSG(_a_, _desc_, ...) do {} while (0) +#define DEBUG_ASSERT(_a_) \ + do { \ + } while (0) +#define DEBUG_ASSERT_MSG(_a_, _desc_, ...) \ + do { \ + } while (0) #endif #define UNIMPLEMENTED() ASSERT_MSG(false, "Unimplemented code!") |