mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
e9885185c4
commit
d21daa2b91
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue