diff options
| author | 2016-04-24 23:40:14 +0800 | |
|---|---|---|
| committer | 2016-04-24 23:40:14 +0800 | |
| commit | ef6873980eb3854d351c319514fca4116165283c (patch) | |
| tree | 985c95fc710bac1e6ea7893b9c36d0049480094b /src/common/assert.h | |
| parent | CMakeLists: Use imported version of Threads::Threads (diff) | |
| download | yuzu-ef6873980eb3854d351c319514fca4116165283c.tar.gz yuzu-ef6873980eb3854d351c319514fca4116165283c.tar.xz yuzu-ef6873980eb3854d351c319514fca4116165283c.zip | |
assert: Allow UNREACHABLE_MSG to have just one argument
Diffstat (limited to 'src/common/assert.h')
| -rw-r--r-- | src/common/assert.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/assert.h b/src/common/assert.h index d7f19f5eb..cd9b819a9 100644 --- a/src/common/assert.h +++ b/src/common/assert.h | |||
| @@ -39,7 +39,7 @@ static void assert_noinline_call(const Fn& fn) { | |||
| 39 | }); } while (0) | 39 | }); } while (0) |
| 40 | 40 | ||
| 41 | #define UNREACHABLE() ASSERT_MSG(false, "Unreachable code!") | 41 | #define UNREACHABLE() ASSERT_MSG(false, "Unreachable code!") |
| 42 | #define UNREACHABLE_MSG(_a_, ...) ASSERT_MSG(false, _a_, __VA_ARGS__) | 42 | #define UNREACHABLE_MSG(...) ASSERT_MSG(false, __VA_ARGS__) |
| 43 | 43 | ||
| 44 | #ifdef _DEBUG | 44 | #ifdef _DEBUG |
| 45 | #define DEBUG_ASSERT(_a_) ASSERT(_a_) | 45 | #define DEBUG_ASSERT(_a_) ASSERT(_a_) |