summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-13 03:44:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-13 03:44:54 +0000
commitd21daa2b9132f5208f09dcd4ea37efd8d81c9d04 (patch)
tree84e83034b9a81630825ed542a2ab68d14a919c30 /internal.h
parente9885185c4061dc30987e5897d8cece54c33600f (diff)
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
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h2
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