[前][次][番号順一覧][スレッド一覧]

ruby-changes:29843

From: nobu <ko1@a...>
Date: Wed, 10 Jul 2013 20:48:11 +0900 (JST)
Subject: [ruby-changes:29843] nobu:r41895 (trunk): internal.h: STATIC_ASSERT

nobu	2013-07-10 20:47:54 +0900 (Wed, 10 Jul 2013)

  New Revision: 41895

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41895

  Log:
    internal.h: STATIC_ASSERT
    
    * internal.h (STATIC_ASSERT): move from enum.c.

  Modified files:
    trunk/ChangeLog
    trunk/enum.c
    trunk/internal.h

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41894)
+++ ChangeLog	(revision 41895)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jul 10 20:47:51 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* internal.h (STATIC_ASSERT): move from enum.c.
+
 Wed Jul 10 20:08:21 2013  Tanaka Akira  <akr@f...>
 
 	* bignum.c (SIZEOF_BDIGIT_DBL): Add a ifdef guard for test.
Index: enum.c
===================================================================
--- enum.c	(revision 41894)
+++ enum.c	(revision 41895)
@@ -15,8 +15,6 @@ https://github.com/ruby/ruby/blob/trunk/enum.c#L15
 #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;
Index: internal.h
===================================================================
--- internal.h	(revision 41894)
+++ internal.h	(revision 41895)
@@ -21,6 +21,8 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/internal.h#L21
 
 #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)) ||  \

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]