mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Remove API mrb_string_value(). There have mrb_str_to_str() in the core. And mrb_string_value() is no merit to keep using.
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ mrb_exc_new(mrb_state *mrb, struct RClass *c, const char *ptr, long len)
|
||||
mrb_value
|
||||
mrb_exc_new3(mrb_state *mrb, struct RClass* c, mrb_value str)
|
||||
{
|
||||
mrb_string_value(mrb, &str);
|
||||
str = mrb_str_to_str(mrb, str);
|
||||
return mrb_funcall(mrb, mrb_obj_value(c), "new", 1, str);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user