lighthouse-pulse/lighthouse/utils/macros.rs
2018-09-19 14:00:35 +10:00

11 lines
151 B
Rust

#[macro_export]
macro_rules! assert_error {
($exp: expr, $err: expr) => {
if ( !$exp ) {
return Err($err);
}
}
}