Function rb_eval_string_wrap

Source
pub unsafe extern "C" fn rb_eval_string_wrap(
    str_: *const c_char,
    state: *mut c_int,
) -> VALUE
Expand description

Identical to rb_eval_string_protect, except it evaluates the given string under a module binding in an isolated binding. This is the same as a binding for loaded libraries on [rb_load]something, true).

ยง@param[in] str Ruby code to evaluate. @param[out] state State of execution. @return The evaluated result if succeeded, an undefined value if otherwise. @post *state is set to zero if succeeded. Nonzero otherwise. @warning You have to clear the error info with [rb_set_errinfo]Qnil) if you decide to ignore the caught exception. @see rb_eval_string

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