From 484d30d84ce883095a217230271d87671195f86c Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sat, 4 May 2024 23:34:21 +0100 Subject: [PATCH] Add MAIN_ARENA_CAPACITY constant --- src/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 253c45c..db6cee6 100644 --- a/src/main.c +++ b/src/main.c @@ -13,6 +13,8 @@ #include #include +#define MAIN_ARENA_CAPACITY 30 * 1024 * 1024 + #define WINDOW_WIDTH 800 #define WINDOW_HEIGHT 600 @@ -37,7 +39,7 @@ int main(int argc, char *argv[]) { int exit_code = EXIT_SUCCESS; Arena *arena = NULL; - if (!wapp_mem_arena_init(&arena, 10 * 1024 * 1024)) { + if (!wapp_mem_arena_init(&arena, MAIN_ARENA_CAPACITY)) { return EXIT_FAILURE; }