Add MAIN_ARENA_CAPACITY constant
This commit is contained in:
parent
de0235c0af
commit
484d30d84c
@ -13,6 +13,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user