Use type checking mrb_to_str instead of converting mrb_str_to_str.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-11-19 12:01:58 +09:00
parent c022e4643f
commit 9516731329
5 changed files with 12 additions and 13 deletions
+1
View File
@@ -352,6 +352,7 @@ MRB_API double mrb_str_to_dbl(mrb_state *mrb, mrb_value str, mrb_bool badcheck);
/*
* Returns a converted string type.
* For type checking, non converting `mrb_to_str` is recommended.
*/
MRB_API mrb_value mrb_str_to_str(mrb_state *mrb, mrb_value str);