mruby.h: obsolete mrb_to_str().

Replace them by `mrb_ensure_string_type()`.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-08-31 10:47:13 +09:00
parent 082882da69
commit 2c41739b66
7 changed files with 9 additions and 18 deletions
+1 -1
View File
@@ -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);
}