fix build error when ENABLE_DEBUG is defined

This commit is contained in:
Atsushi_Morimoto
2013-09-26 18:36:08 +09:00
parent 11b0dda641
commit 86f0912bcc
+1 -1
View File
@@ -513,7 +513,7 @@ argnum_error(mrb_state *mrb, int num)
}
#ifdef ENABLE_DEBUG
#define CODE_FETCH_HOOK(mrb, irep, pc, regs) ((mrb)->code_fetch_hook ? (mrb)->code_fetch_hook((mrb), (irep), (pc), (regs)) : NULL)
#define CODE_FETCH_HOOK(mrb, irep, pc, regs) if ((mrb)->code_fetch_hook) (mrb)->code_fetch_hook((mrb), (irep), (pc), (regs));
#else
#define CODE_FETCH_HOOK(mrb, irep, pc, regs)
#endif