rb_catch_obj

Function rb_catch_obj 

Source
pub unsafe extern "C" fn rb_catch_obj(
    tag: VALUE,
    func: rb_block_call_func_t,
    data: VALUE,
) -> VALUE
Expand description

Identical to rb_catch, except it catches arbitrary Ruby objects.

ยง@param[in] tag Arbitrary tag object. @param[in] func Function pointer that acts as a block. @param[in,out] data Extra parameter passed to func. @return Either caught value for tag, or the return value of func if nothing is thrown.

Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3