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

ruby-changes:27558

From: nobu <ko1@a...>
Date: Wed, 6 Mar 2013 15:30:06 +0900 (JST)
Subject: [ruby-changes:27558] nobu:r39610 (trunk): intern.h: macro rb_check_arity

nobu	2013-03-06 15:29:57 +0900 (Wed, 06 Mar 2013)

  New Revision: 39610

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

  Log:
    intern.h: macro rb_check_arity
    
    * include/ruby/intern.h (rb_check_arity): same name macro for backward
      compatibility checking by ifdef.

  Modified files:
    trunk/include/ruby/intern.h

Index: include/ruby/intern.h
===================================================================
--- include/ruby/intern.h	(revision 39609)
+++ include/ruby/intern.h	(revision 39610)
@@ -266,6 +266,7 @@ const char *rb_sourcefile(void); https://github.com/ruby/ruby/blob/trunk/include/ruby/intern.h#L266
 VALUE rb_check_funcall(VALUE, ID, int, VALUE*);
 
 NORETURN(void rb_error_arity(int, int, int));
+#define rb_check_arity rb_check_arity /* for ifdef */
 static inline void
 rb_check_arity(int argc, int min, int max)
 {

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

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