Unverified Commit 11317de4 authored by cremno's avatar cremno Committed by Yukihiro "Matz" Matsumoto

define sprintf and format as global functions

parent 857a1d9f
......@@ -1165,8 +1165,8 @@ void
mrb_mruby_sprintf_gem_init(mrb_state *mrb)
{
struct RClass *krn = mrb->kernel_module;
mrb_define_method(mrb, krn, "sprintf", mrb_f_sprintf, MRB_ARGS_ANY());
mrb_define_method(mrb, krn, "format", mrb_f_sprintf, MRB_ARGS_ANY());
mrb_define_module_function(mrb, krn, "sprintf", mrb_f_sprintf, MRB_ARGS_ANY());
mrb_define_module_function(mrb, krn, "format", mrb_f_sprintf, MRB_ARGS_ANY());
}
void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment