mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
string.h: obsolete mrb_str_to_str(), even from examples.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user