diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-13 03:44:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-13 03:44:54 +0000 |
commit | d21daa2b9132f5208f09dcd4ea37efd8d81c9d04 (patch) | |
tree | 84e83034b9a81630825ed542a2ab68d14a919c30 | |
parent | e9885185c4061dc30987e5897d8cece54c33600f (diff) | |
download | ruby-d21daa2b9132f5208f09dcd4ea37efd8d81c9d04.tar.gz |
internal.h: define
* internal.h (STATIC_ASSERT): fix missing preprocessor directive.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal.h b/internal.h index 5f38b4e146..eb835f30d6 100644 --- a/internal.h +++ b/internal.h @@ -70,7 +70,7 @@ extern "C" { (__GNUC__ == (major) && __GNUC_MINOR__ == (minor) && __GNUC_PATCHLEVEL__ >= (patchlevel)))) #if GCC_VERSION_SINCE(4, 6, 0) -# STATIC_ASSERT(name, expr) _Static_assert(expr, #name ": " #expr) +# define STATIC_ASSERT(name, expr) _Static_assert(expr, #name ": " #expr) #else # define STATIC_ASSERT(name, expr) typedef int static_assert_##name##_check[1 - 2*!(expr)] #endif |