summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
diff options
context:
space:
mode:
authorKazuaki Tanaka <[email protected]>2016-09-20 23:07:28 +0000
committerKazuaki Tanaka <[email protected]>2016-09-20 23:07:28 +0000
commit968ebac00183b2d015be89349d10c4ee96664e47 (patch)
treeb2712bb8684d26ecf44f06f534284358f40ab1b8 /include/mruby.h
parentc698c67e106efae8ed7c68025b115cd3f7f06512 (diff)
downloadmruby-968ebac00183b2d015be89349d10c4ee96664e47.tar.gz
mruby-968ebac00183b2d015be89349d10c4ee96664e47.zip
Bytecode decoder support, MRB_BYTECODE_DECODE_OPTION
Diffstat (limited to 'include/mruby.h')
-rw-r--r--include/mruby.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 63c0fca3d..57121fecf 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -176,6 +176,10 @@ typedef struct mrb_state {
void (*debug_op_hook)(struct mrb_state* mrb, struct mrb_irep *irep, mrb_code *pc, mrb_value *regs);
#endif
+#ifdef MRB_BYTECODE_DECODE_OPTION
+ void (*bytecode_decoder)(struct mrb_state* mrb, mrb_code *code);
+#endif
+
struct RClass *eException_class;
struct RClass *eStandardError_class;
struct RObject *nomem_err; /* pre-allocated NoMemoryError */