summaryrefslogtreecommitdiffstats
path: root/platform/ios
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2023-09-09 17:46:44 +0200
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2023-09-12 20:13:32 +0200
commit3565d1bf7ebd2e36556736479cb8ba9523d70a63 (patch)
tree0824bb3429bf999f2cbb3e405ae21ffd118fd617 /platform/ios
parent3ed4497113fa10611b90290ce22a751fb9d26e2e (diff)
downloadredot-engine-3565d1bf7ebd2e36556736479cb8ba9523d70a63.tar.gz
[Drivers,Platform] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
Diffstat (limited to 'platform/ios')
-rw-r--r--platform/ios/os_ios.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/os_ios.mm b/platform/ios/os_ios.mm
index 50102e02cc..68e6d4c934 100644
--- a/platform/ios/os_ios.mm
+++ b/platform/ios/os_ios.mm
@@ -257,7 +257,7 @@ Error OS_IOS::open_dynamic_library(const String p_path, void *&p_library_handle,
}
p_library_handle = dlopen(path.utf8().get_data(), RTLD_NOW);
- ERR_FAIL_COND_V_MSG(!p_library_handle, ERR_CANT_OPEN, vformat("Can't open dynamic library: %s. Error: %s.", p_path, dlerror()));
+ ERR_FAIL_NULL_V_MSG(p_library_handle, ERR_CANT_OPEN, vformat("Can't open dynamic library: %s. Error: %s.", p_path, dlerror()));
if (r_resolved_path != nullptr) {
*r_resolved_path = path;