Allow overriding/specifying custom allocator/deallocator pair
legends2k opened this issue · 1 comments
legends2k commented
Memory allocations directly use malloc
and free
. Having a couple of macros like ALLOC_FUNC
and DEALLOC_FUNC
and using them everywhere would be better. malloc
and free
can be defaults when these macros are undefined. This would be beneficial for using these headers in projects that have tight memory constraints and do manual memory management. Example: stb.
Rabios commented
Added custom memory allocation functions to libs that uses memory functions!
Thanks for being interested in ice_libs and opened this issue!