diff options
author | Refael Ackermann <refack@gmail.com> | 2019-05-25 18:54:59 -0400 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-05-29 13:03:43 -0400 |
commit | 7329c8fe52eb36a238dfdcdd83b8f81034d983fa (patch) | |
tree | a0fc3bb87ed75b14ad52cb48bfaf01e7437d1c2c /src/util.h | |
parent | c91a90be731f5728618b8158941f4c479db3015c (diff) | |
download | android-node-v8-7329c8fe52eb36a238dfdcdd83b8f81034d983fa.tar.gz android-node-v8-7329c8fe52eb36a238dfdcdd83b8f81034d983fa.tar.bz2 android-node-v8-7329c8fe52eb36a238dfdcdd83b8f81034d983fa.zip |
src: make UNREACHABLE variadic
Eliminate warning C4003
- not enough arguments for function-like macro invocation 'UNREACHABLE'
PR-URL: https://github.com/nodejs/node/pull/27877
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.h b/src/util.h index 5f02ffd2a3..b7a2d28b66 100644 --- a/src/util.h +++ b/src/util.h @@ -181,8 +181,8 @@ void DumpBacktrace(FILE* fp); #endif -#define UNREACHABLE(expr) \ - ERROR_AND_ABORT("Unreachable code reached: " expr) +#define UNREACHABLE(...) \ + ERROR_AND_ABORT("Unreachable code reached" __VA_OPT__(": ") __VA_ARGS__) // TAILQ-style intrusive list node. template <typename T> |