some progress, but mainly convert the TODO's into static_assert(0, ...)

This commit is contained in:
2026-04-07 22:48:51 +02:00
parent da4de1c560
commit 96c25dc3ad
4 changed files with 60 additions and 18 deletions
+22
View File
@@ -0,0 +1,22 @@
CC := "zig cc"
CFLAGS := "-pedantic -Wall -Wextra -Wno-override-init -O0 -g -fno-omit-frame-pointer -fno-inline"
LDFLAGS := "-lcriterion"
TESTBIN := "/tmp/all_tests"
set shell := ["bash", "-cu"]
test: build
{{TESTBIN}}
test_memcheck: build
valgrind --leak-check=full \
--show-leak-kinds=all \
--trace-children=yes \
--error-exitcode=1 \
{{TESTBIN}}
build:
find "$PWD" -type f -name 'test*.c' | xargs -r {{CC}} {{CFLAGS}} _allocator_impl.c -o {{TESTBIN}} {{LDFLAGS}}
tags:
find "$PWD" -type f \( -name '*.c' -o -name '*.h' \) | xargs ctags