Skip to main content

check_status

Function check_status 

Source
pub fn check_status(
    status: i32,
    operation: &'static str,
) -> Result<(), MlxCError>
Expand description

Translates an MLX-C status into Ok(()) or a captured MlxCError.

ยงErrors

Returns the captured MLX-C description for the calling thread when the status is nonzero, with a fallback description when MLX-C reported none.