diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-29 02:26:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-29 02:26:48 +0000 |
commit | 9f45081627cf682b3ee938353da134d6f28560da (patch) | |
tree | 6c598b2b8bb8a4bad16f6d8a0ec6452ff6029f53 /include | |
parent | 93bfdb9dfd227db87bc7b219b86d1153525cd7d1 (diff) | |
download | ruby-9f45081627cf682b3ee938353da134d6f28560da.tar.gz |
ruby/ruby.h: add blockarg to rb_block_call_func
* include/ruby/ruby.h (rb_block_call_func): add blockarg. block
function can take block argument, e.g., proc {|&blockarg| ...}.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/ruby.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 69e0d6a829..5496213500 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1493,7 +1493,8 @@ PRINTF_ARGS(void rb_compile_warn(const char *, int, const char*, ...), 3, 4); #define RB_IO_WAIT_READABLE 0 #define RB_IO_WAIT_WRITABLE 1 -typedef VALUE rb_block_call_func(VALUE, VALUE, int, VALUE*); +typedef VALUE rb_block_call_func(VALUE, VALUE, int, VALUE*, VALUE); +#define RUBY_BLOCK_CALL_FUNC_TAKES_BLOCKARG 1 VALUE rb_each(VALUE); VALUE rb_yield(VALUE); |