Skip to content

Commit

Permalink
Testing the memory arena stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tanis2000 committed Mar 25, 2024
1 parent 271c2cc commit 2bf03d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,10 +450,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);
Expand Down

0 comments on commit 2bf03d7

Please sign in to comment.