vm.c (mrb_yield_cont): merge declaration and initialization

This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-09-06 22:35:57 +09:00
parent 1f9fa06119
commit a3aff8f437
+3 -5
View File
@@ -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);