mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fixed a bug in INIT_DISPATCH for non direct threading; fix #4153
This commit is contained in:
@@ -935,7 +935,7 @@ argnum_error(mrb_state *mrb, mrb_int num)
|
||||
|
||||
#ifndef DIRECT_THREADED
|
||||
|
||||
#define INIT_DISPATCH for (;;) { insn = BYTECODE_DECODER(*pc); pc++; CODE_FETCH_HOOK(mrb, irep, pc, regs); switch (insn) {
|
||||
#define INIT_DISPATCH for (;;) { insn = BYTECODE_DECODER(*pc); CODE_FETCH_HOOK(mrb, irep, pc, regs); switch (insn) {
|
||||
#define CASE(insn,ops) case insn: pc++; FETCH_ ## ops ();; L_ ## insn ## _BODY:
|
||||
#define NEXT break
|
||||
#define JUMP NEXT
|
||||
|
||||
Reference in New Issue
Block a user