Macro pros_core::bail_on

source ·
macro_rules! bail_on {
    ($err_state:expr, $val:expr) => { ... };
}
Expand description

Checks if the value is equal to the error state, and if it is, uses the value of errno to create an error and return early.