macro_rules! error_on {
($cond:expr, $id:expr, $msg:expr) => { ... };
}Expand description
Check some boolean condition, if it is met, return an Err(Error) with the given id and
message. Can be used within functions which return a rustmex::Result.