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

ruby-changes:35522

From: nobu <ko1@a...>
Date: Wed, 17 Sep 2014 09:54:21 +0900 (JST)
Subject: [ruby-changes:35522] nobu:r47604 (trunk): vm_method.c: single expression

nobu	2014-09-17 09:54:10 +0900 (Wed, 17 Sep 2014)

  New Revision: 47604

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

  Log:
    vm_method.c: single expression
    
    * vm_method.c (GLOBAL_METHOD_CACHE): make a single expression.

  Modified files:
    trunk/vm_method.c
Index: vm_method.c
===================================================================
--- vm_method.c	(revision 47603)
+++ vm_method.c	(revision 47604)
@@ -18,7 +18,7 @@ https://github.com/ruby/ruby/blob/trunk/vm_method.c#L18
 #define GLOBAL_METHOD_CACHE_KEY(c,m) ((((c)>>3)^(m))&GLOBAL_METHOD_CACHE_MASK)
 #define GLOBAL_METHOD_CACHE(c,m) (global_method_cache + GLOBAL_METHOD_CACHE_KEY(c,m))
 #else
-#define GLOBAL_METHOD_CACHE(c,m) 0,rb_bug("global method cache disabled improperly")
+#define GLOBAL_METHOD_CACHE(c,m) (rb_bug("global method cache disabled improperly"), NULL)
 #endif
 #include "method.h"
 

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

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