Skip to main content

R_ToplevelExec

Function R_ToplevelExec 

Source
pub(crate) unsafe fn R_ToplevelExec(
    fun: Option<unsafe extern "C-unwind" fn(*mut c_void)>,
    data: *mut c_void,
) -> Rboolean
Expand description

Run fun(data) in a new top-level context: the caller’s condition handlers and restarts are hidden from it, and any jump out of it (an unhandled error, an interrupt, an abort restart) stops here. TRUE when fun returned, FALSE after such a jump. Checked wrapper for R_ToplevelExec. Calls R_ToplevelExec_unchecked and routes through with_r_thread. Generated from source location line 981, column 19. Generated from source file miniextendr-api/src/sys.rs.