mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby.h: obsolete mrb_to_str().
Replace them by `mrb_ensure_string_type()`.
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ mrb_exc_new(mrb_state *mrb, struct RClass *c, const char *ptr, size_t len)
|
||||
MRB_API mrb_value
|
||||
mrb_exc_new_str(mrb_state *mrb, struct RClass* c, mrb_value str)
|
||||
{
|
||||
mrb_to_str(mrb, str);
|
||||
mrb_ensure_string_type(mrb, str);
|
||||
return mrb_obj_new(mrb, c, 1, &str);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user