Fixes.
This commit is contained in:
@@ -49,11 +49,11 @@ void *arena_alloc_align(Arena *a, usize size, usize align);
|
|||||||
void *arena_alloc(Arena *a, usize size);
|
void *arena_alloc(Arena *a, usize size);
|
||||||
|
|
||||||
// Free the allocated arena
|
// Free the allocated arena
|
||||||
void arena_free(&Arena);
|
void arena_free(&Arena arena);
|
||||||
|
|
||||||
// "clears" the arena by placing the offset to the beggining.
|
// "clears" the arena by placing the offset to the beggining.
|
||||||
// Allowing reuse of arena without having to free/alloc.
|
// Allowing reuse of arena without having to free/alloc.
|
||||||
void arena_reset(&Arena);
|
void arena_reset(&Arena arena);
|
||||||
|
|
||||||
// Initializes an arena instance.
|
// Initializes an arena instance.
|
||||||
// On malloc fail it will return the arena with data as NULL
|
// On malloc fail it will return the arena with data as NULL
|
||||||
|
|||||||
Reference in New Issue
Block a user