ruby-changes:36314
From: nobu <ko1@a...>
Date: Thu, 13 Nov 2014 12:44:59 +0900 (JST)
Subject: [ruby-changes:36314] nobu:r48395 (trunk): internal.h: define
nobu 2014-11-13 12:44:54 +0900 (Thu, 13 Nov 2014) New Revision: 48395 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48395 Log: internal.h: define * internal.h (STATIC_ASSERT): fix missing preprocessor directive. Modified files: trunk/internal.h Index: internal.h =================================================================== --- internal.h (revision 48394) +++ internal.h (revision 48395) @@ -70,7 +70,7 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/internal.h#L70 (__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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/