mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
vm.c (CI_PROC_SET): consider alias proc
This commit is contained in:
@@ -265,7 +265,7 @@ top_proc(mrb_state *mrb, const struct RProc *proc)
|
||||
|
||||
#define CI_PROC_SET(ci, p) do {\
|
||||
ci->proc = p;\
|
||||
ci->pc = (p && !MRB_PROC_CFUNC_P(p) && p->body.irep) ? p->body.irep->iseq : NULL;\
|
||||
ci->pc = (p && !MRB_PROC_CFUNC_P(p) && !MRB_PROC_ALIAS_P(p) && p->body.irep) ? p->body.irep->iseq : NULL; \
|
||||
} while (0)
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user