1
0
Fork 0

Added: arena_release implementation

Browse Source
This commit is contained in:
rhuibertsjr 2024-04-25 19:43:12 +02:00
parent d475a451a3
commit 66083b3a95

View File

@ -40,4 +40,9 @@ arena_allocate(Arena *arena, u64 size)
internal void internal void
arena_release(Arena *arena) arena_release(Arena *arena)
{ {
for (Arena *node = arena->current, *prev = 0; node != 0; node = prev)
{
prev = node->prev;
platform_memory_release(node, node->size);
}
} }