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>
This commit is contained in:
Refael Ackermann 2019-05-25 18:54:59 -04:00
parent c91a90be73
commit 7329c8fe52

View File

@ -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>