Commit 365cc40a authored by Mitchell Blank Jr's avatar Mitchell Blank Jr

C++ compilabilty -- "new" is a C++ keyword, avoid it

parent be0e3fdf
......@@ -1003,10 +1003,10 @@ mrb_value
mrb_mod_alias(mrb_state *mrb, mrb_value mod)
{
struct RClass *c = mrb_class_ptr(mod);
mrb_value new, old;
mrb_value new_value, old_value;
mrb_get_args(mrb, "oo", &new, &old);
mrb_alias_method(mrb, c, mrb_symbol(new), mrb_symbol(old));
mrb_get_args(mrb, "oo", &new_value, &old_value);
mrb_alias_method(mrb, c, mrb_symbol(new_value), mrb_symbol(old_value));
return mrb_nil_value();
}
......
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