mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
internal.h: STATIC_ASSERT
* internal.h (STATIC_ASSERT): move from enum.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
716c93bed1
commit
c169b51389
3 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Jul 10 20:47:51 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* internal.h (STATIC_ASSERT): move from enum.c.
|
||||
|
||||
Wed Jul 10 20:08:21 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* bignum.c (SIZEOF_BDIGIT_DBL): Add a ifdef guard for test.
|
||||
|
|
2
enum.c
2
enum.c
|
@ -15,8 +15,6 @@
|
|||
#include "id.h"
|
||||
#include "internal.h"
|
||||
|
||||
#define STATIC_ASSERT(name, expr) typedef int static_assert_##name##_check[1 - 2*!(expr)]
|
||||
|
||||
VALUE rb_f_send(int argc, VALUE *argv, VALUE recv);
|
||||
|
||||
VALUE rb_mEnumerable;
|
||||
|
|
|
@ -21,6 +21,8 @@ extern "C" {
|
|||
|
||||
#define numberof(array) ((int)(sizeof(array) / sizeof((array)[0])))
|
||||
|
||||
#define STATIC_ASSERT(name, expr) typedef int static_assert_##name##_check[1 - 2*!(expr)]
|
||||
|
||||
#define GCC_VERSION_SINCE(major, minor, patchlevel) \
|
||||
(defined(__GNUC__) && !defined(__INTEL_COMPILER) && \
|
||||
((__GNUC__ > (major)) || \
|
||||
|
|
Loading…
Reference in a new issue