summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2018-03-12 22:14:08 +0900
committerGitHub <[email protected]>2018-03-12 22:14:08 +0900
commit59dabb38abffc9ea438032df363a65c72f84db8c (patch)
treef3c85d7541a128406e9e417955a5314d10cc3b32 /include/mruby.h
parent843053c97c57472439b3502d2f260cf9e7f6c015 (diff)
parenta5ac49de3038955732d9d06271a5df9175e86669 (diff)
downloadmruby-59dabb38abffc9ea438032df363a65c72f84db8c.tar.gz
mruby-59dabb38abffc9ea438032df363a65c72f84db8c.zip
Merge pull request #3963 from dearblue/forced-block-arguments
Give me block by mrb_get_args() (forced block arguments)
Diffstat (limited to 'include/mruby.h')
-rw-r--r--include/mruby.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby.h b/include/mruby.h
index ab6b5b3d6..3e13050b6 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -843,7 +843,7 @@ MRB_API struct RClass * mrb_define_module_under(mrb_state *mrb, struct RClass *o
* | `i` | {Integer} | {mrb_int} | |
* | `b` | boolean | {mrb_bool} | |
* | `n` | {Symbol} | {mrb_sym} | |
- * | `&` | block | {mrb_value} | |
+ * | `&` | block | {mrb_value} | when &! gives raised exception if no block given. |
* | `*` | rest arguments | {mrb_value} *, {mrb_int} | Receive the rest of arguments as an array. |
* | &vert; | optional | | After this spec following specs would be optional. |
* | `?` | optional given | {mrb_bool} | `TRUE` if preceding argument is given. Used to check optional argument is given. |