mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Use "$!" specifier of mrb_get_args.
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user