summaryrefslogtreecommitdiffhomepage
path: root/src/range.c
diff options
context:
space:
mode:
authordearblue <[email protected]>2021-08-21 15:15:20 +0900
committerdearblue <[email protected]>2021-08-23 21:58:57 +0900
commit66aa184a82aeb51ae5ec73f5b38a2523e31305fe (patch)
tree40cc6067cb75b4f58e2d1dffd6e4c8644850761a /src/range.c
parent6415faabaaa58481d9cc2209792fe2a93e4243ec (diff)
downloadmruby-66aa184a82aeb51ae5ec73f5b38a2523e31305fe.tar.gz
mruby-66aa184a82aeb51ae5ec73f5b38a2523e31305fe.zip
Checks the frozen object with `mrb_get_args()`
This now works with the `+` modifier that can be added after each specifier. - `nil` is bypassed. - The `s` and `z` specifiers are received in C as a `const char *`, so adding a `+` modifier will raise an exception. - The `a` specifier is received in C as `const mrb_value *`, so adding a `+` modifier will raise an exception. - The `|`, `*`, `&`, `?` and `:` specifiers with `+` modifier raises an exception. If `!`/`+` exceeds one for each specifier, an exception will occur in the subsequent processing. This is the same behavior as before.
Diffstat (limited to 'src/range.c')
0 files changed, 0 insertions, 0 deletions