aboutsummaryrefslogtreecommitdiff
path: root/src/ptr_set.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-09-10 20:02:39 +0100
committergingerBill <gingerBill@users.noreply.github.com>2025-09-10 20:02:39 +0100
commit228ddd69034d7711a6c21b129eaac1b05d71b4ff (patch)
tree8719cec802af7caad22daae2a5cb94e2151e1945 /src/ptr_set.cpp
parent1c648126c73d01e6bce368bd8a55dbb89f0f2369 (diff)
Inline some ptr set iterators
Diffstat (limited to 'src/ptr_set.cpp')
-rw-r--r--src/ptr_set.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ptr_set.cpp b/src/ptr_set.cpp
index 06c1e4a58..512a157d0 100644
--- a/src/ptr_set.cpp
+++ b/src/ptr_set.cpp
@@ -239,4 +239,7 @@ gb_internal PtrSetIterator<T> begin(PtrSet<T> &set) noexcept {
template <typename T>
gb_internal PtrSetIterator<T> end(PtrSet<T> &set) noexcept {
return PtrSetIterator<T>{&set, set.capacity};
-} \ No newline at end of file
+}
+
+
+#define FOR_PTR_SET(index_, set_) for (usize index_ = 0; index_ < (set_).capacity; index_++) if ((set_).keys[index_] != nullptr && (set_).keys[index_] != cast(void *)~(uintptr)(0ull)) \ No newline at end of file