error.c (mrb_make_exception): reinvent exception creation

The arguments of mrb_make_exception() has changed. I believe no one is
using the function, but beware.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-02-17 23:21:36 +09:00
parent 431f83eb8c
commit 78137f31c8
3 changed files with 29 additions and 51 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ mrb_value mrb_get_backtrace(mrb_state *mrb);
void mrb_exc_mesg_set(mrb_state *mrb, struct RException *exc, mrb_value mesg);
mrb_value mrb_exc_mesg_get(mrb_state *mrb, struct RException *exc);
mrb_value mrb_f_raise(mrb_state*, mrb_value);
mrb_value mrb_make_exception(mrb_state *mrb, mrb_int argc, const mrb_value *argv);
mrb_value mrb_make_exception(mrb_state *mrb, mrb_value exc, mrb_value mesg);
/* gc */
void mrb_gc_mark_mt(mrb_state*, struct RClass*);