diff options
| author | 2021-08-05 17:21:56 +0000 | |
|---|---|---|
| committer | 2021-08-05 17:21:56 +0000 | |
| commit | 346149dcf9ad4f1c34ae504c03d8b1b32f8474b9 (patch) | |
| tree | c8f5b37a3f2a3fc4985e75dde4f5d25957c3f99b /src | |
| parent | Merge pull request #6819 from Morph1984/i-am-dumb (diff) | |
| download | yuzu-346149dcf9ad4f1c34ae504c03d8b1b32f8474b9.tar.gz yuzu-346149dcf9ad4f1c34ae504c03d8b1b32f8474b9.tar.xz yuzu-346149dcf9ad4f1c34ae504c03d8b1b32f8474b9.zip | |
assert: Avoid empty macros
Diffstat (limited to '')
| -rw-r--r-- | src/common/assert.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/assert.h b/src/common/assert.h index b3ba35c0f..f71beec8e 100644 --- a/src/common/assert.h +++ b/src/common/assert.h | |||
| @@ -52,8 +52,8 @@ 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_) do {} while (0) |
| 56 | #define DEBUG_ASSERT_MSG(_a_, _desc_, ...) | 56 | #define DEBUG_ASSERT_MSG(_a_, _desc_, ...) do {} while (0) |
| 57 | #endif | 57 | #endif |
| 58 | 58 | ||
| 59 | #define UNIMPLEMENTED() ASSERT_MSG(false, "Unimplemented code!") | 59 | #define UNIMPLEMENTED() ASSERT_MSG(false, "Unimplemented code!") |