Replace mrb_intern() func with mrb_intern2() func or mrb_intern_cstr() func.

This commit is contained in:
Jun Hiroe
2013-07-12 01:00:50 +09:00
parent 2fd57d1519
commit 883c45b931
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -916,7 +916,7 @@ mrb_const_remove(mrb_state *mrb, mrb_value mod, mrb_sym sym)
void
mrb_define_const(mrb_state *mrb, struct RClass *mod, const char *name, mrb_value v)
{
mrb_obj_iv_set(mrb, (struct RObject*)mod, mrb_intern(mrb, name), v);
mrb_obj_iv_set(mrb, (struct RObject*)mod, mrb_intern_cstr(mrb, name), v);
}
void