diff options
Diffstat (limited to 'src/load.c')
| -rw-r--r-- | src/load.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/load.c b/src/load.c index da88f0d3a..0b47f2b89 100644 --- a/src/load.c +++ b/src/load.c @@ -614,10 +614,12 @@ mrb_read_irep(mrb_state *mrb, const uint8_t *bin) return read_irep(mrb, bin, flags); } +void mrb_exc_set(mrb_state *mrb, mrb_value exc); + static void irep_error(mrb_state *mrb) { - mrb->exc = mrb_obj_ptr(mrb_exc_new_str_lit(mrb, E_SCRIPT_ERROR, "irep load error")); + mrb_exc_set(mrb, mrb_exc_new_str_lit(mrb, E_SCRIPT_ERROR, "irep load error")); } MRB_API mrb_value |
