mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Deprecate rb_iterate in C++
This commit is contained in:
parent
733ffa74cd
commit
4fb8a12adc
Notes:
git
2021-08-09 11:22:17 +09:00
1 changed files with 2 additions and 0 deletions
|
@ -190,6 +190,7 @@ rb_define_hooked_variable(const char *q, VALUE *w, std::nullptr_t e, void_type *
|
||||||
/// @name Exceptions and tag jumps
|
/// @name Exceptions and tag jumps
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
|
RUBY_CXX_DEPRECATED("by rb_block_call since 1.9")
|
||||||
RUBY_CXX_DEPRECATED("Use of ANYARGS in this function is deprecated")
|
RUBY_CXX_DEPRECATED("Use of ANYARGS in this function is deprecated")
|
||||||
/// @brief Old way to implement iterators.
|
/// @brief Old way to implement iterators.
|
||||||
/// @param[in] q A function that can yield.
|
/// @param[in] q A function that can yield.
|
||||||
|
@ -208,6 +209,7 @@ rb_iterate(onearg_type *q, VALUE w, type *e, VALUE r)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_NULLPTR
|
#ifdef HAVE_NULLPTR
|
||||||
|
RUBY_CXX_DEPRECATED("by rb_block_call since 1.9")
|
||||||
inline VALUE
|
inline VALUE
|
||||||
rb_iterate(onearg_type *q, VALUE w, std::nullptr_t e, VALUE r)
|
rb_iterate(onearg_type *q, VALUE w, std::nullptr_t e, VALUE r)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue