macro_rules! hal_call {
($function:ident($($arg:expr),*)) => { ... };
($namespace:path, $function:ident($($arg:expr),*)) => { ... };
}Expand description
Wraps a C/C++ HAL function call that looks like T foo(arg1, arg2, arg3, ... , int32_t* status)
and turns that status into a HALResult<T>, with a non-zero status code returning in
the Err variant.