diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2023-09-09 16:11:33 +0200 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2023-09-11 19:45:49 +0200 |
commit | 893f889d74b35bb7330c3ff3d0187042770a4490 (patch) | |
tree | b1435faf6380670ffc4a878d0cdcb29a0527f5a7 /core/templates/paged_array.h | |
parent | 221884e6bc260c38f16422081b7d4efd49a71375 (diff) | |
download | redot-engine-893f889d74b35bb7330c3ff3d0187042770a4490.tar.gz |
[Core] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
Diffstat (limited to 'core/templates/paged_array.h')
-rw-r--r-- | core/templates/paged_array.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/templates/paged_array.h b/core/templates/paged_array.h index 45b90869b9..863e3eef11 100644 --- a/core/templates/paged_array.h +++ b/core/templates/paged_array.h @@ -112,7 +112,7 @@ public: } void configure(uint32_t p_page_size) { - ERR_FAIL_COND(page_pool != nullptr); //sanity check + ERR_FAIL_COND(page_pool != nullptr); // Safety check. ERR_FAIL_COND(p_page_size == 0); page_size = nearest_power_of_2_templated(p_page_size); } @@ -185,7 +185,7 @@ public: uint32_t new_page_count = page_count + 1; if (unlikely(new_page_count > max_pages_used)) { - ERR_FAIL_COND(page_pool == nullptr); //sanity check + ERR_FAIL_NULL(page_pool); // Safety check. _grow_page_array(); //keep out of inline } @@ -352,7 +352,7 @@ public: } void set_page_pool(PagedArrayPool<T> *p_page_pool) { - ERR_FAIL_COND(max_pages_used > 0); //sanity check + ERR_FAIL_COND(max_pages_used > 0); // Safety check. page_pool = p_page_pool; page_size_mask = page_pool->get_page_size_mask(); |