From 9d069d5229d1c9f65143f48f9851b99ce270e09d Mon Sep 17 00:00:00 2001 From: Tilo K Date: Sat, 20 Jun 2026 14:31:47 +0200 Subject: [PATCH] feat: add readme --- README.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 README.txt diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..9c4394d --- /dev/null +++ b/README.txt @@ -0,0 +1,24 @@ +tk_sfl +Tilo Klarenbeek single file libraries + +--- + +Probably don't use these, if you really want to: + + +*** tk_memory.h *** +``` +#include "tk_memory.h" +#define TK_MEMORY_IMPLEMENTATION + +int main() { + void* ptr = tk_malloc(1024); + tk_free(ptr); + + tk_check_memory_leaks(); +} + +``` + +Define DEBUG to initalize memory with OXFE, to detect uninitialized memory. +Define DEBUG AND TK_MEMORY_TRACK to catch memory leaks when calling tk_check_memory_leaks().