From 4fb8a12adc993d85af90e8563aff77f100cfdbd5 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 8 Aug 2021 18:24:03 +0900 Subject: [PATCH] Deprecate rb_iterate in C++ --- include/ruby/backward/cxxanyargs.hpp | 2 ++ 1 file changed, 2 insertions(+) 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) {