pub unsafe fn object_has_flag(obj: *const Object, f: ObjectFlag) -> Result<bool>
This function is unsafe because it may dereference raw pointers.