abort_on_panic::abort_on_panic!
[-] [+]
[src]
macro_rules! abort_on_panic { ($message:expr, $body:block) => { { let guard = ::abort_on_panic::PanicGuard::with_message($message); let result = $body; drop(guard); result } }; ($body:block) => { { let guard = ::abort_on_panic::PanicGuard::new(); let result = $body; drop(guard); result } }; }
Run a block of code, aborting the entire process if it tries to panic.