1
0
Fork 0
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:
Nobuyoshi Nakada 2021-09-11 17:54:11 +09:00
parent 952806cdec
commit b568e6a130
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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
/**