pub unsafe fn enif_has_pending_exception(
    env: *mut ErlNifEnv,
    reason: *mut ERL_NIF_TERM
) -> c_int