if this == 0 {
set_last_error(ALEF_INVALID_HANDLE_ERROR, "zero is not a valid handle");
{{ fail_ret }}
}
let obj_ptr = match locked_handle_ptr::<{{ qualified }}>(&mut __alef_guards, this) {
Ok(value) => value,
Err(error) => { set_handle_error(&error); {{ fail_ret }} }
};
// SAFETY: the registry entry guard remains held for the duration of this call.
let obj = unsafe { &mut *obj_ptr };