string.h: obsolete mrb_str_to_str(), even from examples.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-08-30 11:40:02 +09:00
parent e86c9cb57c
commit f6e5c902f0
4 changed files with 7 additions and 13 deletions
-7
View File
@@ -358,13 +358,6 @@ MRB_API mrb_value mrb_str_intern(mrb_state *mrb, mrb_value self);
MRB_API mrb_value mrb_str_to_inum(mrb_state *mrb, mrb_value str, mrb_int base, mrb_bool badcheck);
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.
* obsolete: use `mrb_obj_as_string()` instead.
*/
#define mrb_str_to_str(mrb, str) mrb_obj_as_string(mrb, str)
/**
* Returns true if the strings match and false if the strings don't match.
*