Refactor rb_proc_call function

This commit is contained in:
S-H-GAMELINKS 2021-09-26 21:50:38 +09:00 committed by Nobuyoshi Nakada
parent d25af1f44e
commit 9cd9eca379
Notes: git 2021-10-10 09:31:47 +09:00

10
proc.c
View File

@ -990,15 +990,7 @@ rb_proc_call_kw(VALUE self, VALUE args, int kw_splat)
VALUE VALUE
rb_proc_call(VALUE self, VALUE args) rb_proc_call(VALUE self, VALUE args)
{ {
VALUE vret; return rb_proc_call_kw(self, args, RB_NO_KEYWORDS);
rb_proc_t *proc;
GetProcPtr(self, proc);
vret = rb_vm_invoke_proc(GET_EC(), proc,
check_argc(RARRAY_LEN(args)), RARRAY_CONST_PTR(args),
RB_NO_KEYWORDS, VM_BLOCK_HANDLER_NONE);
RB_GC_GUARD(self);
RB_GC_GUARD(args);
return vret;
} }
static VALUE static VALUE