diff options
| author | Sam Spilsbury <smspillaz@gmail.com> | 2016-04-24 23:40:14 +0800 |
|---|---|---|
| committer | Sam Spilsbury <smspillaz@gmail.com> | 2016-04-24 23:40:14 +0800 |
| commit | 329e5e34375b9c5734367a7ca36ddfcb3e114b76 (patch) | |
| tree | 985c95fc710bac1e6ea7893b9c36d0049480094b /src/common/assert.h | |
| parent | 72fc7f489416e053db7292b91666878791803185 (diff) | |
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 d7f19f5eb6..cd9b819a97 100644 --- a/src/common/assert.h +++ b/src/common/assert.h @@ -39,7 +39,7 @@ static void assert_noinline_call(const Fn& fn) { }); } while (0) #define UNREACHABLE() ASSERT_MSG(false, "Unreachable code!") -#define UNREACHABLE_MSG(_a_, ...) ASSERT_MSG(false, _a_, __VA_ARGS__) +#define UNREACHABLE_MSG(...) ASSERT_MSG(false, __VA_ARGS__) #ifdef _DEBUG #define DEBUG_ASSERT(_a_) ASSERT(_a_) |
