In PtrSet permanent_allocator instead of heap_allocator

This commit is contained in:
gingerBill
2026-03-16 15:50:13 +00:00
parent ef36a18323
commit 3dc68c2e08

View File

@@ -19,7 +19,8 @@ template <typename T> gb_internal void ptr_set_clear (PtrSet<T> *s);
#define FOR_PTR_SET(element, set_) for (auto *it = &(set_).keys[0], element = it ? *it : nullptr; (set_).keys != nullptr && it < &(set_).keys[(set_).capacity]; it++) if (element = *it, (*it != nullptr && *it != cast(void *)~(uintptr)(0ull)))
gb_internal gbAllocator ptr_set_allocator(void) {
return heap_allocator();
// return heap_allocator();
return permanent_allocator();
}
template <typename T>