W
Wei Li
Hi,
In my project , I has to include a head file "alloc.h". The malloc()
function was wrapped in this file as :
alloc.h
#define malloc(a) PROJ_MALLOC(a)
alloc.c
void *PROJ_MALLOC(size_t a){
.....................
}
So that everytime I use malloc() it will be invoked to PROJ_MALLOC actually.
My question is how can I use system malloc() and avoid using PROJ_MALLOC ?
Thanks!
Wei
In my project , I has to include a head file "alloc.h". The malloc()
function was wrapped in this file as :
alloc.h
#define malloc(a) PROJ_MALLOC(a)
alloc.c
void *PROJ_MALLOC(size_t a){
.....................
}
So that everytime I use malloc() it will be invoked to PROJ_MALLOC actually.
My question is how can I use system malloc() and avoid using PROJ_MALLOC ?
Thanks!
Wei