mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
add mrb_string_type().
This commit is contained in:
@@ -1523,6 +1523,12 @@ mrb_ptr_to_str(mrb_state *mrb, void *p)
|
||||
return mrb_obj_value(p_str);
|
||||
}
|
||||
|
||||
mrb_value
|
||||
mrb_string_type(mrb_state *mrb, mrb_value str)
|
||||
{
|
||||
return mrb_convert_type(mrb, str, MRB_TT_STRING, "String", "to_str");
|
||||
}
|
||||
|
||||
mrb_value
|
||||
mrb_check_string_type(mrb_state *mrb, mrb_value str)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user