From 0bd7c5dc0725a4882cb33c5d8f1a3b101d4025cd Mon Sep 17 00:00:00 2001 From: pryazha Date: Thu, 20 Feb 2025 15:08:47 +0500 Subject: initial --- prb_memory.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 prb_memory.h (limited to 'prb_memory.h') diff --git a/prb_memory.h b/prb_memory.h new file mode 100644 index 0000000..40a00dc --- /dev/null +++ b/prb_memory.h @@ -0,0 +1,11 @@ +#ifndef PRB_MEMORY_H +#define PRB_MEMORY_H + +#define DEFAULT_ALLOC_SIZE Kilobytes(4) + +Arena *arena_alloc(U64 cap); +void arena_release(Arena *arena); +void *arena_push(Arena *arena, U64 size); +void arena_pop(Arena *arena, U64 amount); + +#endif /* PRB_MEMORY_H */ -- cgit v1.2.3-70-g09d2