mirror of
https://codeberg.org/Tilo-K/tk_sfl.git
synced 2026-10-18 13:57:10 +00:00
feat: add readme
This commit is contained in:
1 file changed
+24
+24
@@ -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().
|
||||||
Reference in new issue
Block a user