diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-08-08 18:24:03 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-08-09 11:21:56 +0900 |
commit | 4fb8a12adc993d85af90e8563aff77f100cfdbd5 (patch) | |
tree | 306f8360a32cdb73d65f4d80d2cf085516f0ea8b /include/ruby/backward | |
parent | 733ffa74cd32a5c11ff744a5490782daa00ff1ae (diff) |
Deprecate rb_iterate in C++
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4720
Diffstat (limited to 'include/ruby/backward')
-rw-r--r-- | include/ruby/backward/cxxanyargs.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/backward/cxxanyargs.hpp b/include/ruby/backward/cxxanyargs.hpp index b74992d10f..57f4753d31 100644 --- a/include/ruby/backward/cxxanyargs.hpp +++ b/include/ruby/backward/cxxanyargs.hpp @@ -190,6 +190,7 @@ rb_define_hooked_variable(const char *q, VALUE *w, std::nullptr_t e, void_type * /// @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") /// @brief Old way to implement iterators. /// @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 +RUBY_CXX_DEPRECATED("by rb_block_call since 1.9") inline VALUE rb_iterate(onearg_type *q, VALUE w, std::nullptr_t e, VALUE r) { |