mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
vm.c (mrb_yield_cont): merge declaration and initialization
This commit is contained in:
@@ -1089,12 +1089,10 @@ mrb_yield(mrb_state *mrb, mrb_value b, mrb_value arg)
|
||||
mrb_value
|
||||
mrb_yield_cont(mrb_state *mrb, mrb_value b, mrb_value self, mrb_int argc, const mrb_value *argv)
|
||||
{
|
||||
struct RProc *p;
|
||||
mrb_callinfo *ci;
|
||||
|
||||
check_block(mrb, b);
|
||||
p = mrb_proc_ptr(b);
|
||||
ci = mrb->c->ci;
|
||||
|
||||
struct RProc *p = mrb_proc_ptr(b);
|
||||
mrb_callinfo *ci = mrb->c->ci;
|
||||
|
||||
stack_extend_adjust(mrb, 4, &argv);
|
||||
mrb->c->ci->stack[1] = mrb_ary_new_from_values(mrb, argc, argv);
|
||||
|
||||
Reference in New Issue
Block a user