jkuhlmann / cgltf

:diamond_shape_with_a_dot_inside: Single-file glTF 2.0 loader and writer written in C99
MIT License
1.44k stars 136 forks source link

Allows preprocessor overwrite of free/alloc #178

Closed Kuranes closed 2 years ago

Kuranes commented 2 years ago

In previous code if some memory tool did a

define free(A) free_dbg(A, stuff...)

it would conflict and not compile. Sadly some memory checker tools integration requires it For instance visual studio _CRTDBG_MAP_ALLOC (https://docs.microsoft.com/en-us/visualstudio/debugger/finding-memory-leaks-using-the-crt-library?view=vs-2022)