mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress deprecated rb_iterate declaration warnings in C++
Apply commit:733ffa74cd32a5c11ff744a5490782daa00ff1ae again.
This commit is contained in:
parent
952806cdec
commit
b568e6a130
1 changed files with 5 additions and 0 deletions
|
@ -265,7 +265,9 @@ int rb_block_given_p(void);
|
|||
*/
|
||||
void rb_need_block(void);
|
||||
|
||||
#ifndef __cplusplus
|
||||
RBIMPL_ATTR_DEPRECATED(("by: rb_block_call since 1.9"))
|
||||
#endif
|
||||
/**
|
||||
* Old way to iterate a block.
|
||||
*
|
||||
|
@ -300,6 +302,9 @@ rb_iterate_deprecated(VALUE (*iter)(VALUE), VALUE data1, rb_block_call_func_t bl
|
|||
{
|
||||
return ::rb_iterate(iter, data1, bl, data2);
|
||||
}}}
|
||||
|
||||
RBIMPL_ATTR_DEPRECATED(("by: rb_block_call since 1.9"))
|
||||
VALUE rb_iterate(VALUE (*func1)(VALUE), VALUE data1, rb_block_call_func_t proc, VALUE data2);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue