rosy/ruby_bindings/
exception.rs

1use super::prelude::*;
2
3extern "C" {
4    // VALUE rb_errinfo(void)
5    pub fn rb_errinfo() -> VALUE;
6    // void rb_set_errinfo(VALUE err)
7    pub fn rb_set_errinfo(err: VALUE);
8
9    // NORETURN(void rb_exc_raise(VALUE mesg))
10    pub fn rb_exc_raise(mesg: VALUE) -> !;
11    // VALUE rb_protect(VALUE (* proc) (VALUE), VALUE data, int *pstate)
12    pub fn rb_protect(
13        proc: Option<unsafe extern "C" fn(VALUE) -> VALUE>,
14        data: VALUE,
15        pstate: *mut c_int,
16    ) -> VALUE;
17}