Skip to content

Commit

Permalink
src: make UNREACHABLE variadic
Browse files Browse the repository at this point in the history
Eliminate warning C4003
 - not enough arguments for function-like macro invocation 'UNREACHABLE'

PR-URL: #27877
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
  • Loading branch information
refack committed May 29, 2019
1 parent c91a90b commit 7329c8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 7329c8f

Please sign in to comment.