diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-11-19 12:01:58 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-11-19 12:08:28 +0900 |
| commit | 9516731329a9d43b4aab57a19fb9cfc1b62f11e8 (patch) | |
| tree | 38ca7a71cc958792b2fd9df30ca62dfa577ae386 /include | |
| parent | c022e4643f2b6c84cb3f1ca716c0e7da3f14c8ca (diff) | |
| download | mruby-9516731329a9d43b4aab57a19fb9cfc1b62f11e8.tar.gz mruby-9516731329a9d43b4aab57a19fb9cfc1b62f11e8.zip | |
Use type checking `mrb_to_str` instead of converting `mrb_str_to_str`.
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 fa1955f48..60db35c99 100644 --- a/include/mruby/string.h +++ b/include/mruby/string.h @@ -352,6 +352,7 @@ 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. */ MRB_API mrb_value mrb_str_to_str(mrb_state *mrb, mrb_value str); |
