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
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
|
VALUE
|
||||||
rb_proc_call_with_block(VALUE self, int argc, const VALUE *argv, VALUE passed_procval)
|
rb_proc_call_with_block(VALUE self, int argc, const VALUE *argv, VALUE passed_procval)
|
||||||
{
|
{
|
||||||
rb_execution_context_t *ec = GET_EC();
|
return rb_proc_call_with_block_kw(self, argc, argv, passed_procval, RB_NO_KEYWORDS);
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user