summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-08-30 07:38:45 +0900
committerGitHub <[email protected]>2021-08-30 07:38:45 +0900
commit64d5a40cde6fe1e33ebe3287bc6abdba9b68fb20 (patch)
tree71633ea2f686a28979f74047dbf8ef66bb1a1d45 /include
parent84e36d748ca6d2681aab9d548c225e601aa4cc30 (diff)
parentf99620436d2cb09046a99d330ffa7ca1c622538d (diff)
downloadmruby-64d5a40cde6fe1e33ebe3287bc6abdba9b68fb20.tar.gz
mruby-64d5a40cde6fe1e33ebe3287bc6abdba9b68fb20.zip
Merge pull request #5542 from dearblue/mrb_get_args-cI
Allow `nil` for `c!` and `I!` specifiers of `mrb_get_args()`
Diffstat (limited to 'include')
-rw-r--r--include/mruby.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mruby.h b/include/mruby.h
index af1b25792..87c902df0 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -899,12 +899,13 @@ MRB_API struct RClass* mrb_define_module_under_id(mrb_state *mrb, struct RClass
* | `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} | const {mrb_value} *, {mrb_int} | Receive two arguments; `a!` gives (`NULL`,`0`) for `nil` |
+ * | `c` | {Class}/{Module} | strcut RClass * | `c!` gives `NULL` for `nil` |
* | `f` | {Integer}/{Float} | {mrb_float} | |
* | `i` | {Integer}/{Float} | {mrb_int} | |
* | `b` | boolean | {mrb_bool} | |
* | `n` | {String}/{Symbol} | {mrb_sym} | |
* | `d` | data | void *, {mrb_data_type} const | 2nd argument will be used to check data type so it won't be modified; when `!` follows, the value may be `nil` |
- * | `I` | inline struct | void *, struct RClass | |
+ * | `I` | inline struct | void *, struct RClass | `I!` gives `NULL` for `nil` |
* | `&` | block | {mrb_value} | &! raises exception if no block given. |
* | `*` | rest arguments | const {mrb_value} *, {mrb_int} | Receive the rest of arguments as an array; `*!` avoid copy of the stack. |
* | <code>\|</code> | optional | | After this spec following specs would be optional. |