mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Refactor vm_yield function
This commit is contained in:
parent
bb84c75001
commit
692dfc5088
Notes:
git
2021-09-14 14:58:49 +09:00
1 changed files with 1 additions and 3 deletions
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…
Add table
Add a link
Reference in a new issue