Reset the xar freelist iterators' index to 0 for easy reuse

This commit is contained in:
Shane Shrybman
2026-02-20 12:06:38 -05:00
parent baaea5c1e6
commit 94fa423cac

View File

@@ -136,6 +136,7 @@ freelist_iterate_by_val :: proc(it: ^Freelist_Iterator($T, $SHIFT)) -> (val: T,
}
it.idx += 1
}
it.idx = 0
return
}
@@ -150,5 +151,6 @@ freelist_iterate_by_ptr :: proc(it: ^Freelist_Iterator($T, $SHIFT)) -> (val: ^T,
}
it.idx += 1
}
it.idx = 0
return
}