refactor: arena uses Allocator

This commit is contained in:
2026-06-06 09:48:18 -06:00
parent f3a5ecf807
commit 2dcef95b2e
4 changed files with 101 additions and 83 deletions

View File

@@ -44,7 +44,7 @@ add_requires("lae_allocator")
target("lae_arena")
set_kind("static")
add_packages("lae_allocator")
add_packages("lae_allocator", { public = true })
add_files("src/lae_arena.c")
@@ -64,9 +64,10 @@ if has_config("example") then
target("example")
set_kind("binary")
add_files("src/main.c")
add_deps("lae_arena")
add_packages("lae_allocator")
add_files("src/main.c")
end
-- =========================================================
@@ -77,12 +78,12 @@ if has_config("tests") then
target("test_arena")
set_kind("binary")
add_files("test/test_arena.c")
add_deps("lae_arena")
add_packages("cmocka")
add_files("test/test_arena.c")
add_tests("default")
if has_config("asan") then