pub unsafe extern "C" fn weld_error_code(err: weld_error_t) -> u64 {
    let err = err as *mut weld::WeldError;
    let err = &*err;
    err.code() as _
}
Returns the error code for a Weld error.

This function is a wrapper for `WeldError::code`.
weld-capi/src/lib.rs