summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2021-07-06 18:52:29 +0200
committerBenoit Daloze <eregontp@gmail.com>2021-07-16 12:11:24 +0200
commitfd0df9c4fb36597e5e3f500670b29dbd77a14eca (patch)
tree5efd7ac323cc17519fbfd04104c1fc3be034fe5a /include
parent301d194ee3b49e6b078eccb999dd538e9bfa8c7c (diff)
Emit deprecatation warnings for rb_iterate()
* It is obsolete since 1.9, see https://github.com/ruby/ruby/blob/master/doc/extension.rdoc#label-Control+Structure and [Misc #18025]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4629
Diffstat (limited to 'include')
-rw-r--r--include/ruby/internal/iterator.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/internal/iterator.h b/include/ruby/internal/iterator.h
index 99c0831b13..a2aee15d31 100644
--- a/include/ruby/internal/iterator.h
+++ b/include/ruby/internal/iterator.h
@@ -45,6 +45,7 @@ int rb_keyword_given_p(void);
int rb_block_given_p(void);
void rb_need_block(void);
VALUE rb_iterate(VALUE(*)(VALUE),VALUE,rb_block_call_func_t,VALUE);
+DEPRECATED_BY(rb_block_call since 1.9, VALUE rb_iterate(VALUE(*)(VALUE),VALUE,rb_block_call_func_t,VALUE));
VALUE rb_block_call(VALUE,ID,int,const VALUE*,rb_block_call_func_t,VALUE);
VALUE rb_block_call_kw(VALUE,ID,int,const VALUE*,rb_block_call_func_t,VALUE,int);
VALUE rb_rescue(VALUE(*)(VALUE),VALUE,VALUE(*)(VALUE,VALUE),VALUE);