Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add static assert
  • Loading branch information
petkaantonov committed Feb 13, 2016
commit 1a20880488cdb0c9db0d56232916b5a96025b369
3 changes: 2 additions & 1 deletion src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ namespace node {
#define CHECK_LT(a, b) CHECK((a) < (b))
#define CHECK_NE(a, b) CHECK((a) != (b))

#define UNREACHABLE() ABORT()
#define STATIC_ASSERT(expression) static_assert(expression, #expression)
#define UNREACHABLE() abort()

// TAILQ-style intrusive list node.
template <typename T>
Expand Down