From 3276030fc91481683e43160df3eda876805794c9 Mon Sep 17 00:00:00 2001 From: Valerio Santinelli Date: Thu, 26 Oct 2023 12:42:29 +0200 Subject: [PATCH] Testing the memory arena stuff --- example/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/example/main.c b/example/main.c index 688c72b0..d75fd19a 100644 --- a/example/main.c +++ b/example/main.c @@ -441,10 +441,10 @@ void main_loop() { int main(int argc, char *argv[]) { -// binocle_memory_init(); -// game_state = binocle_memory_bootstrap_push_struct(game_state_t, main_arena, binocle_memory_default_bootstrap_params(), binocle_memory_default_arena_params()); -// binocle_string s1 = binocle_memory_push_cstring(game_state->main_arena, "Something"); -// binocle_string s2 = binocle_memory_push_cstring(game_state->main_arena, "Different"); + binocle_memory_init(); + game_state = binocle_memory_bootstrap_push_struct(game_state_t, main_arena, binocle_memory_default_bootstrap_params(), binocle_memory_default_arena_params()); + binocle_string s1 = binocle_memory_push_cstring(game_state->main_arena, "Something"); + binocle_string s2 = binocle_memory_push_cstring(game_state->main_arena, "Different"); binocle_app_desc_t app_desc = {0}; app = binocle_app_new(); binocle_app_init(&app, &app_desc);