mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge remote-tracking branch 'upstream/master' into mrbgems
This commit is contained in:
@@ -843,12 +843,17 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)
|
||||
|
||||
/* prepare stack */
|
||||
if (MRB_PROC_CFUNC_P(m)) {
|
||||
mrb->stack[0] = m->body.func(mrb, recv);
|
||||
recv = m->body.func(mrb, recv);
|
||||
mrb->arena_idx = ai;
|
||||
if (mrb->exc) goto L_RAISE;
|
||||
/* pop stackpos */
|
||||
regs = mrb->stack = mrb->stbase + mrb->ci->stackidx;
|
||||
regs[mrb->ci->acc] = recv;
|
||||
cipop(mrb);
|
||||
irep = mrb->ci->proc->body.irep;
|
||||
pool = irep->pool;
|
||||
syms = irep->syms;
|
||||
pc = mrb->ci->pc;
|
||||
NEXT;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user