Use "$!" specifier of mrb_get_args.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-07-12 14:49:55 +09:00
parent e9b57124a0
commit a18904a4c2
8 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ exc_initialize(mrb_state *mrb, mrb_value exc)
mrb_int argc;
mrb_value *argv;
if (mrb_get_args(mrb, "|o*", &mesg, &argv, &argc) >= 1) {
if (mrb_get_args(mrb, "|o*!", &mesg, &argv, &argc) >= 1) {
mrb_iv_set(mrb, exc, mrb_intern_lit(mrb, "mesg"), mesg);
}
return exc;