Skip to main content

bail_on

Macro 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.