use std::ffi::{CStr, c_char};
use crate::{MlxCError, error::check_status, raw};
pub fn set_metallib_path(path: &CStr) -> Result<(), MlxCError> {
let nul_terminated_path: *const c_char = path.as_ptr();
let status = unsafe { raw::mlx_metal_set_metallib_path(nul_terminated_path) };
check_status(status, "set the MLX AOT metallib path")
}