check_c_error

Function check_c_error 

Source
pub(crate) fn check_c_error(code: i32) -> Result<(), ReadStatError>
Expand description

Check a readstat C error code, returning Ok(()) for READSTAT_OK or an appropriate error variant otherwise.