coqui_stt/
helpers.rs

1
2
3
4
5
6
7
8
macro_rules! handle_error {
    ($fn: expr) => {
        match crate::Error::from_c_int(unsafe { $fn }) {
            Some(e) => Err(e),
            None => Ok(()),
        }
    };
}