That maybe a solution, but not through the preprocessor (code yet untested)
link with this and call crt_free() instead of free().// private external C library with one function #include <stdlib.h> void crt_free(void*p) { free(p); }
And it came to pass that in time the Great God Om spake unto Brutha, the Chosen One: "Psst!"
(Terry Pratchett, Small Gods)
In reply to Re^5: XS malloc and free (whose)
by Brutha
in thread XS malloc and free
by Brutha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |