diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-06-19 21:19:42 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-06-19 21:19:42 +0900 |
| commit | f678620a436aa015f9252858aa00112256ab0668 (patch) | |
| tree | 4a6da786a7ab691f063421560a09b36aca03783a /include/mruby.h | |
| parent | 1fca58f7ca63b6a7e372be75cab2da52725c26e7 (diff) | |
| parent | c40802865a756f97ec8ffbd2361864b1fa291d4e (diff) | |
| download | mruby-f678620a436aa015f9252858aa00112256ab0668.tar.gz mruby-f678620a436aa015f9252858aa00112256ab0668.zip | |
Merge branch 'dearblue-block_given'
Diffstat (limited to 'include/mruby.h')
| -rw-r--r-- | include/mruby.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mruby.h b/include/mruby.h index 04d8c1a53..02be8300f 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -1004,6 +1004,11 @@ MRB_API const mrb_value *mrb_get_argv(mrb_state *mrb); */ MRB_API mrb_value mrb_get_arg1(mrb_state *mrb); +/** + * Check if a block argument is given from mrb_state. + */ +MRB_API mrb_bool mrb_block_given_p(mrb_state *mrb); + /* `strlen` for character string literals (use with caution or `strlen` instead) Adjacent string literals are concatenated in C/C++ in translation phase 6. If `lit` is not one, the compiler will report a syntax error: |
