diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-18 07:48:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-18 07:48:37 +0000 |
commit | 8ffb23c2e1f2f292c8ed85b51ffb85f4811e5a9e (patch) | |
tree | dd6d92bd3456620b372c4f8750aadf5597446f31 /internal.h | |
parent | 6607266ef81e6ed6ddf90ba982d6609daaa471bc (diff) | |
download | ruby-8ffb23c2e1f2f292c8ed85b51ffb85f4811e5a9e.tar.gz |
proc.c: rb_block_min_max_arity
* proc.c (rb_block_min_max_arity): new function to get arity range
from the current block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h index e6d50ebcda..c040172f3e 100644 --- a/internal.h +++ b/internal.h @@ -1477,6 +1477,7 @@ ID rb_id_attrget(ID id); VALUE rb_proc_location(VALUE self); st_index_t rb_hash_proc(st_index_t hash, VALUE proc); int rb_block_arity(void); +int rb_block_min_max_arity(int *max); VALUE rb_func_proc_new(rb_block_call_func_t func, VALUE val); VALUE rb_func_lambda_new(rb_block_call_func_t func, VALUE val); |