near_primitives
macro_rules! unwrap_or_return { ($obj: expr, $ret: expr) => { ... }; ($obj: expr) => { ... }; }
Macro to either return value if the result is Ok, or exit function logging error.