Add new API mrb_ary_resize(mruby implementation of rb_ary_resize).

This commit is contained in:
take_cheeze
2014-07-06 22:23:29 +09:00
parent 5c50bcd20a
commit 13d9631e21
2 changed files with 23 additions and 0 deletions
+1
View File
@@ -54,6 +54,7 @@ mrb_value mrb_ary_entry(mrb_value ary, mrb_int offset);
mrb_value mrb_ary_shift(mrb_state *mrb, mrb_value self);
mrb_value mrb_ary_clear(mrb_state *mrb, mrb_value self);
mrb_value mrb_ary_join(mrb_state *mrb, mrb_value ary, mrb_value sep);
mrb_value mrb_ary_resize(mrb_state *mrb, mrb_value ary, mrb_int len);
static inline mrb_int
mrb_ary_len(mrb_state *mrb, mrb_value ary)