ruby-changes:67086
From: Nobuyoshi <ko1@a...>
Date: Mon, 9 Aug 2021 11:22:11 +0900 (JST)
Subject: [ruby-changes:67086] 4fb8a12adc (master): Deprecate rb_iterate in C++
https://git.ruby-lang.org/ruby.git/commit/?id=4fb8a12adc From 4fb8a12adc993d85af90e8563aff77f100cfdbd5 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 8 Aug 2021 18:24:03 +0900 Subject: 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 b74992d..57f4753 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 * https://github.com/ruby/ruby/blob/trunk/include/ruby/backward/cxxanyargs.hpp#L190 /// @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) https://github.com/ruby/ruby/blob/trunk/include/ruby/backward/cxxanyargs.hpp#L209 } #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) { -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/