mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
replace RTEST() by mrb_test_p()
This commit is contained in:
+2
-2
@@ -1052,8 +1052,8 @@ retry:
|
||||
*/
|
||||
if (posarg >= 0 && nextarg < argc) {
|
||||
const char *mesg = "too many arguments for format string";
|
||||
if (RTEST(ruby_debug)) mrb_raise(mrb, E_ARGUMENT_ERROR, mesg);
|
||||
if (RTEST(ruby_verbose)) mrb_warn("%s", mesg);
|
||||
if (mrb_test(ruby_debug)) mrb_raise(mrb, E_ARGUMENT_ERROR, mesg);
|
||||
if (mrb_test(ruby_verbose)) mrb_warn("%s", mesg);
|
||||
}
|
||||
mrb_str_resize(mrb, result, blen);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user