Ruby  3.4.0dev (2024-11-05 revision 348a53415339076afc4a02fcd09f3ae36e9c4c61)
Namespaces | Functions
ruby::backward Namespace Reference

Backwards compatibility layer. More...

Namespaces

 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. More...
 

Detailed Description

Backwards compatibility layer.

Function Documentation

◆ rb_iterate_deprecated()

static VALUE ruby::backward::rb_iterate_deprecated ( VALUE(*)(VALUE iter,
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().