Ruby 3.3.6p108 (2024-11-05 revision 75015d4c1f6965b5e85e96fb309f1f2129f933c0)
ruby::backward Namespace Reference

Backwards compatibility layer. More...

Namespaces

namespace  cxxanyargs
 Provides ANYARGS deprecation warnings.
 

Functions

static VALUE rb_iterate_deprecated (VALUE(*iter)(VALUE), VALUE data1, rb_block_call_func_t bl, VALUE data2)
 Old way to iterate a block.
 

Detailed Description

Backwards compatibility layer.

Function Documentation

◆ rb_iterate_deprecated()

static VALUE ruby::backward::rb_iterate_deprecated ( VALUE(* iter )(VALUE),
VALUE data1,
rb_block_call_func_t bl,
VALUE data2 )
inlinestatic

Old way to iterate a block.

Deprecated
This is an old API. Use rb_block_call() instead.
Warning
The passed function must at least once call a ruby method (to handle interrupts etc.)
Parameters
[in]iterA function that could yield a value.
[in,out]data1Passed to func1
[in]blA function acts as a block.
[in,out]data2Passed to proc as the data2 parameter.
Returns
What func1 returns.

Definition at line 301 of file iterator.h.

Referenced by ruby::backward::cxxanyargs::rb_iterate().