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:
parent
c91a90be73
commit
7329c8fe52
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user