diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-06-05 11:06:34 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 16:21:05 +0900 |
| commit | 029c7c1116acc95937f02e15debd1989ae0b7382 (patch) | |
| tree | edeb3d0afbc73eea6e21de1a1b259bf54d787c0c /include | |
| parent | a68f005fd70050ce51284936c212efbc353ae735 (diff) | |
| download | mruby-029c7c1116acc95937f02e15debd1989ae0b7382.tar.gz mruby-029c7c1116acc95937f02e15debd1989ae0b7382.zip | |
Add `const` modifier to `mrb_irep` for `code_fetch_hook`.
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mruby.h b/include/mruby.h index 769f9734c..59188e6b5 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -277,8 +277,8 @@ typedef struct mrb_state { #endif #ifdef MRB_ENABLE_DEBUG_HOOK - void (*code_fetch_hook)(struct mrb_state* mrb, struct mrb_irep *irep, const mrb_code *pc, mrb_value *regs); - void (*debug_op_hook)(struct mrb_state* mrb, struct mrb_irep *irep, const mrb_code *pc, mrb_value *regs); + void (*code_fetch_hook)(struct mrb_state* mrb, const struct mrb_irep *irep, const mrb_code *pc, mrb_value *regs); + void (*debug_op_hook)(struct mrb_state* mrb, const struct mrb_irep *irep, const mrb_code *pc, mrb_value *regs); #endif #ifdef MRB_BYTECODE_DECODE_OPTION |
