summaryrefslogtreecommitdiff
path: root/src/std/mem.c
diff options
context:
space:
mode:
authorOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-02-25 13:31:44 +1100
committerOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-02-25 13:31:44 +1100
commit1d6be7975928e644e56422f3244aae5571f48ee0 (patch)
treee1270fa837a70b86a812ccd9a21a4f11d4dfc469 /src/std/mem.c
parentd919e8cb785c165ee700907b74672eb586c55d29 (diff)
chore: format
Diffstat (limited to 'src/std/mem.c')
-rw-r--r--src/std/mem.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/std/mem.c b/src/std/mem.c
index 419a712..f5b92d4 100644
--- a/src/std/mem.c
+++ b/src/std/mem.c
@@ -22,9 +22,11 @@ void* arena_alloc_align(arena* a, size_t size, size_t align) {
void* arena_alloc(arena* a, size_t size) { return arena_alloc_align(a, size, DEFAULT_ALIGNMENT); }
arena arena_create(void* backing_buffer, size_t capacity) {
- return (arena){ .begin = backing_buffer, .curr = backing_buffer, .end = backing_buffer + (ptrdiff_t)capacity };
+ return (arena){ .begin = backing_buffer,
+ .curr = backing_buffer,
+ .end = backing_buffer + (ptrdiff_t)capacity };
}
-void arena_free_all(arena *a) {
- a->curr = a->begin; // pop everything at once and reset to the start.
+void arena_free_all(arena* a) {
+ a->curr = a->begin; // pop everything at once and reset to the start.
} \ No newline at end of file