diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-08-27 19:39:05 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-08-27 19:39:05 -0700 |
| commit | 9cc5797894049be41ffffb786552aaf13d1a2051 (patch) | |
| tree | bc0f3ab1cdb846fa004f6a19fc706492895a5a7d /include | |
| parent | 91b878e5dfa671b63c26019962736dda1a58f9fc (diff) | |
| parent | f77dc2e6cb2c2ea21c6cca96f88d06acfbf30d17 (diff) | |
| download | mruby-9cc5797894049be41ffffb786552aaf13d1a2051.tar.gz mruby-9cc5797894049be41ffffb786552aaf13d1a2051.zip | |
Merge pull request #1486 from iij/pr-typeerror-string-start-end-with
Crash if you call String#start_with/end_with with non-String arguments.
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/string.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mruby/string.h b/include/mruby/string.h index 903c036f2..6dd667cc4 100644 --- a/include/mruby/string.h +++ b/include/mruby/string.h @@ -41,6 +41,7 @@ mrb_value mrb_ptr_to_str(mrb_state *, void *); mrb_value mrb_obj_as_string(mrb_state *mrb, mrb_value obj); mrb_value mrb_str_resize(mrb_state *mrb, mrb_value str, mrb_int len); mrb_value mrb_str_substr(mrb_state *mrb, mrb_value str, mrb_int beg, mrb_int len); +mrb_value mrb_string_type(mrb_state *mrb, mrb_value str); mrb_value mrb_check_string_type(mrb_state *mrb, mrb_value str); mrb_value mrb_str_buf_new(mrb_state *mrb, mrb_int capa); mrb_value mrb_str_buf_cat(mrb_state *mrb, mrb_value str, const char *ptr, size_t len); |
