diff options
author | S-H-GAMELINKS <[email protected]> | 2021-09-26 21:50:38 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-10-10 09:31:25 +0900 |
commit | 9cd9eca3793ecf47f0e5971efaf99b514b72be94 (patch) | |
tree | ef179182dca184783cb8adc5fb0c7e480166d9a5 /proc.c | |
parent | d25af1f44e8920e15c5cab7808757e28fa9f6492 (diff) |
Refactor rb_proc_call function
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4897
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -990,15 +990,7 @@ rb_proc_call_kw(VALUE self, VALUE args, int kw_splat) VALUE rb_proc_call(VALUE self, VALUE args) { - VALUE vret; - 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; + return rb_proc_call_kw(self, args, RB_NO_KEYWORDS); } static VALUE |