diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-02-17 23:11:49 -0800 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-02-17 23:11:49 -0800 |
| commit | 66a7b04b251aa33d557f9515f8cac16560266c3c (patch) | |
| tree | 5b9f1336456543bb5533ac108d7599b9d49cbc96 /include/mruby.h | |
| parent | 9b06a4506ed2ae222b19cafd184c66521b720581 (diff) | |
| parent | bc44d06c7374d5b925d8936227e6976622365a3e (diff) | |
| download | mruby-66a7b04b251aa33d557f9515f8cac16560266c3c.tar.gz mruby-66a7b04b251aa33d557f9515f8cac16560266c3c.zip | |
Merge pull request #845 from masuidrive/hook_fetch
Added a hook at VM code fetch.
Diffstat (limited to 'include/mruby.h')
| -rw-r--r-- | include/mruby.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mruby.h b/include/mruby.h index fb73b60b9..bebbf6b04 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -133,6 +133,10 @@ typedef struct mrb_state { struct RNode *local_svar;/* regexp */ #endif +#ifdef ENABLE_DEBUG + void (*hook_vm_fetch_code)(struct mrb_state* mrb, struct mrb_irep *irep, mrb_code *pc, mrb_value *regs); +#endif + struct RClass *eException_class; struct RClass *eStandardError_class; |
