[ruby-cvs:73338] nobu:r66238 (trunk): Prefer rb_check_arity when 0 or 1 arguments

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Dec 6 16:49:24 JST 2018


nobu	2018-12-06 16:49:24 +0900 (Thu, 06 Dec 2018)

  New Revision: 66238

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

  Log:
    Prefer rb_check_arity when 0 or 1 arguments
    
    Especially over checking argc then calling rb_scan_args just to
    raise an ArgumentError.

  Modified files:
    trunk/enum.c
    trunk/enumerator.c
    trunk/error.c
    trunk/gc.c
    trunk/io.c
    trunk/iseq.c
    trunk/proc.c
    trunk/range.c
    trunk/rational.c
    trunk/signal.c
    trunk/string.c
    trunk/thread.c
    trunk/thread_sync.c
    trunk/time.c
    trunk/transcode.c
    trunk/variable.c
    trunk/vm.c
    trunk/vm_eval.c


More information about the ruby-cvs mailing list