mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
change linkage of mrb_str_size to internal
Use RSTRING_LEN to get the length.
This commit is contained in:
+1
-1
@@ -445,7 +445,7 @@ mrb_str_bytesize(mrb_state *mrb, mrb_value self)
|
||||
*
|
||||
* Returns a new string object containing a copy of <i>str</i>.
|
||||
*/
|
||||
MRB_API mrb_value
|
||||
static mrb_value
|
||||
mrb_str_size(mrb_state *mrb, mrb_value self)
|
||||
{
|
||||
struct RString *s = mrb_str_ptr(self);
|
||||
|
||||
Reference in New Issue
Block a user