From 8e0d6a085f0cb811a26fb1fedbbd14075a1e422c Mon Sep 17 00:00:00 2001 From: Valerio Santinelli Date: Mon, 25 Mar 2024 18:02:39 +0100 Subject: [PATCH] Memory arena seems to be working. Testing it out with the window instance and a local arena for allocations generated from Lua code for C structs. --- .idea/codeStyles/Project.xml | 10 +-- example/main.c | 21 ++++-- src/binocle/core/binocle_app.c | 6 +- src/binocle/core/binocle_lua.c | 7 ++ src/binocle/core/binocle_lua.h | 2 + src/binocle/core/binocle_memory.c | 88 ++++++++++++-------------- src/binocle/core/binocle_memory.h | 3 + src/binocle/core/binocle_window.c | 15 +++-- src/binocle/core/binocle_window.h | 4 +- src/binocle/core/binocle_window_wrap.c | 4 +- 10 files changed, 92 insertions(+), 68 deletions(-) diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 48cf32b0..83dfed52 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -6,15 +6,15 @@