void * xxmalloc (size_t sz) { TheCustomHeapType * h = getCustomHeap(); void * ptr = h->malloc (sz); #ifdef _DEBUG addallocsz(sz); printallocsz(sz); #endif //fprintf(stdout,"recording address \n"); //record_addr(ptr,sz); return ptr; }
static inline void * internalMalloc (size_t sz) { TheCustomHeapType * theCustomHeap = getCustomHeap(); void * ptr = theCustomHeap->malloc (sz); return ptr; }
void * xxmalloc (size_t sz) { TheCustomHeapType * h = getCustomHeap(); void * ptr = h->malloc (sz); return ptr; }
extern "C" void * MYCDECL CUSTOM_MALLOC (size_t sz) { TheCustomHeapType * theCustomHeap = getCustomHeap(); void * ptr = theCustomHeap->malloc (sz); return ptr; }