slot_vector: Back to debug assert
This commit is contained in:
parent
95a97723ba
commit
f5bf701618
|
@ -107,9 +107,9 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
void ValidateIndex([[maybe_unused]] SlotId id) const noexcept {
|
void ValidateIndex([[maybe_unused]] SlotId id) const noexcept {
|
||||||
ASSERT(id);
|
DEBUG_ASSERT(id);
|
||||||
ASSERT(id.index / 64 < stored_bitset.size());
|
DEBUG_ASSERT(id.index / 64 < stored_bitset.size());
|
||||||
ASSERT(((stored_bitset[id.index / 64] >> (id.index % 64)) & 1) != 0);
|
DEBUG_ASSERT(((stored_bitset[id.index / 64] >> (id.index % 64)) & 1) != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] u32 FreeValueIndex() noexcept {
|
[[nodiscard]] u32 FreeValueIndex() noexcept {
|
||||||
|
|
Loading…
Reference in New Issue