diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-09-25 22:54:25 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-09-25 22:54:25 +0900 |
| commit | 9ea7b718683386d2dc0787e919fc3d413ab20e67 (patch) | |
| tree | a353c837094f8aab25a8e26474284ff78a151734 /include | |
| parent | a97f085c52c3a98ffd26e69ac1fd0d43dc83864c (diff) | |
| parent | 57611240a972932ef26a13c6998a7fa90fd33371 (diff) | |
| download | mruby-9ea7b718683386d2dc0787e919fc3d413ab20e67.tar.gz mruby-9ea7b718683386d2dc0787e919fc3d413ab20e67.zip | |
Merge pull request #5087 from dearblue/get-args-string
Prohibit string changes by "s"/"z" specifier of `mrb_get_args()`
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mruby.h b/include/mruby.h index 63cd753b0..6d884b146 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -876,8 +876,8 @@ MRB_API struct RClass * mrb_define_module_under(mrb_state *mrb, struct RClass *o * | `S` | {String} | {mrb_value} | when `!` follows, the value may be `nil` | * | `A` | {Array} | {mrb_value} | when `!` follows, the value may be `nil` | * | `H` | {Hash} | {mrb_value} | when `!` follows, the value may be `nil` | - * | `s` | {String} | char *, {mrb_int} | Receive two arguments; `s!` gives (`NULL`,`0`) for `nil` | - * | `z` | {String} | char * | `NULL` terminated string; `z!` gives `NULL` for `nil` | + * | `s` | {String} | const char *, {mrb_int} | Receive two arguments; `s!` gives (`NULL`,`0`) for `nil` | + * | `z` | {String} | const char * | `NULL` terminated string; `z!` gives `NULL` for `nil` | * | `a` | {Array} | {mrb_value} *, {mrb_int} | Receive two arguments; `a!` gives (`NULL`,`0`) for `nil` | * | `f` | {Fixnum}/{Float} | {mrb_float} | | * | `i` | {Fixnum}/{Float} | {mrb_int} | | |
