[][src]Macro dynerr::check

macro_rules! check {
    ($x:expr) => { ... };
    ($x:expr, $log:expr) => { ... };
}

Does .unwrap_or_else(|e| logged_panic!(e)) on result
if no file supplied then defaults to "event.log"

#Example

This example is not tested
let _i = check!(example(9);
check!(example(9, "error.log");