mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Refactor rb_proc_call_with_block function
This commit is contained in:
parent
e882905d0d
commit
d6b8819b79
Notes:
git
2021-07-22 14:03:13 +09:00
1 changed files with 1 additions and 7 deletions
8
proc.c
8
proc.c
|
@ -1027,13 +1027,7 @@ rb_proc_call_with_block_kw(VALUE self, int argc, const VALUE *argv, VALUE passed
|
|||
VALUE
|
||||
rb_proc_call_with_block(VALUE self, int argc, const VALUE *argv, VALUE passed_procval)
|
||||
{
|
||||
rb_execution_context_t *ec = GET_EC();
|
||||
VALUE vret;
|
||||
rb_proc_t *proc;
|
||||
GetProcPtr(self, proc);
|
||||
vret = rb_vm_invoke_proc(ec, proc, argc, argv, RB_NO_KEYWORDS, proc_to_block_handler(passed_procval));
|
||||
RB_GC_GUARD(self);
|
||||
return vret;
|
||||
return rb_proc_call_with_block_kw(self, argc, argv, passed_procval, RB_NO_KEYWORDS);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue