Refactor vm_yield function
This commit is contained in:
parent
bb84c75001
commit
692dfc5088
Notes:
git
2021-09-14 14:58:49 +09:00
4
vm.c
4
vm.c
@ -1396,9 +1396,7 @@ vm_yield_with_cref(rb_execution_context_t *ec, int argc, const VALUE *argv, int
|
|||||||
static VALUE
|
static VALUE
|
||||||
vm_yield(rb_execution_context_t *ec, int argc, const VALUE *argv, int kw_splat)
|
vm_yield(rb_execution_context_t *ec, int argc, const VALUE *argv, int kw_splat)
|
||||||
{
|
{
|
||||||
return invoke_block_from_c_bh(ec, check_block_handler(ec),
|
return vm_yield_with_cref(ec, argc, argv, kw_splat, NULL, FALSE);
|
||||||
argc, argv, kw_splat, VM_BLOCK_HANDLER_NONE,
|
|
||||||
NULL, FALSE, FALSE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user