feat: initial version, incomplete but functional

This commit is contained in:
2026-01-11 11:24:16 +02:00
parent 6e49342638
commit 8dd24e5a5f
6 changed files with 124 additions and 1 deletions

18
makefile Normal file
View File

@@ -0,0 +1,18 @@
RELEASE_flags=-DNDEBUG -O2 -g0
DEBUG_flags=-std=c23 -DDEBUG -Wall -Wno-unknown-pragmas -Wpedantic -Wshadow -Wextra -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Wvla -g -Og
clean:
rm -fr bin
format:
clang-format -i test/nileakdetector_test.c
clang-format -i nileakdetector.h
test: bin/test
bin/test/nileakdetector_test
.PHONY: clean format test leaks
bin/test: test/nileakdetector_test.c
mkdir -p bin/test
cc ${DEBUG_flags} test/nileakdetector_test.c -o bin/test/nileakdetector_test