Add MAIN_ARENA_CAPACITY constant
This commit is contained in:
		| @@ -13,6 +13,8 @@ | |||||||
| #include <stdlib.h> | #include <stdlib.h> | ||||||
| #include <string.h> | #include <string.h> | ||||||
|  |  | ||||||
|  | #define MAIN_ARENA_CAPACITY 30 * 1024 * 1024 | ||||||
|  |  | ||||||
| #define WINDOW_WIDTH 800 | #define WINDOW_WIDTH 800 | ||||||
| #define WINDOW_HEIGHT 600 | #define WINDOW_HEIGHT 600 | ||||||
|  |  | ||||||
| @@ -37,7 +39,7 @@ int main(int argc, char *argv[]) { | |||||||
|   int exit_code = EXIT_SUCCESS; |   int exit_code = EXIT_SUCCESS; | ||||||
|  |  | ||||||
|   Arena *arena = NULL; |   Arena *arena = NULL; | ||||||
|   if (!wapp_mem_arena_init(&arena, 10 * 1024 * 1024)) { |   if (!wapp_mem_arena_init(&arena, MAIN_ARENA_CAPACITY)) { | ||||||
|     return EXIT_FAILURE; |     return EXIT_FAILURE; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user