aboutsummaryrefslogtreecommitdiff
path: root/src/common/assert.h
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2016-04-24 23:40:14 +0800
committerSam Spilsbury <smspillaz@gmail.com>2016-04-24 23:40:14 +0800
commitef6873980eb3854d351c319514fca4116165283c (patch)
tree985c95fc710bac1e6ea7893b9c36d0049480094b /src/common/assert.h
parentdf81fa11fc8972a5775a57ccde1e0ef8d7fbfe64 (diff)
assert: Allow UNREACHABLE_MSG to have just one argument
Diffstat (limited to 'src/common/assert.h')
-rw-r--r--src/common/assert.h2
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_)