From ed43a0f2867e80491e3c13742687fe8af5e79ab5 Mon Sep 17 00:00:00 2001 From: Abdelrahman <said.abdelrahman89@gmail.com> Date: Fri, 23 Aug 2024 21:52:12 +0100 Subject: [PATCH] Use GB macro to define arena size --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index f39a2c1..d8dd15d 100644 --- a/src/main.c +++ b/src/main.c @@ -1,6 +1,7 @@ #include "img.h" #include "mem_arena.h" #include "mem_utils.h" +#include "misc_utils.h" #include "obj.h" #include "render.h" #include "shaders.h" @@ -21,8 +22,7 @@ enum { int main(void) { Arena *arena = NULL; - if (!wapp_mem_arena_init(&arena, 10ul * 1024ul * 1024ul * 1024ul, - WAPP_MEM_ALLOC_RESERVE, false)) { + if (!wapp_mem_arena_init(&arena, GB(10), WAPP_MEM_ALLOC_RESERVE, false)) { return TINY_EXIT_ARENA_INIT_FAILED; }