diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2014-10-22 03:53:57 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2014-10-23 22:49:58 +0200 |
commit | b33a87d8cb52d5ea57fe4ecd1498f3136a2ccc11 (patch) | |
tree | 7c6dba70e77eab8e3998b1d32e5ae57e3d8380d4 /src/node.h | |
parent | 2d82cdf670d88f2f5acc7d1b759cf0cbb3f99962 (diff) | |
download | android-node-v8-b33a87d8cb52d5ea57fe4ecd1498f3136a2ccc11.tar.gz android-node-v8-b33a87d8cb52d5ea57fe4ecd1498f3136a2ccc11.tar.bz2 android-node-v8-b33a87d8cb52d5ea57fe4ecd1498f3136a2ccc11.zip |
src: remove STATIC_ASSERT() macro
This macro does not not rightfully belong in node.h, remove it.
Replace the one use site with a C++11 `static_assert` construct.
Diffstat (limited to 'src/node.h')
-rw-r--r-- | src/node.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/node.h b/src/node.h index 384b790c97..8857751b50 100644 --- a/src/node.h +++ b/src/node.h @@ -148,14 +148,6 @@ NODE_EXTERN v8::Handle<v8::Value> MakeCallback( #define NODE_STRINGIFY_HELPER(n) #n #endif -#ifndef STATIC_ASSERT -#if defined(_MSC_VER) -# define STATIC_ASSERT(expr) static_assert(expr, "") -# else -# define STATIC_ASSERT(expr) static_cast<void>((sizeof(char[-1 + !!(expr)]))) -# endif -#endif - #ifdef _WIN32 // TODO(tjfontaine) consider changing the usage of ssize_t to ptrdiff_t #if !defined(_SSIZE_T_) && !defined(_SSIZE_T_DEFINED) |