Exemplo n.º 1
0
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;
}
Exemplo n.º 2
0
static inline void * internalMalloc (size_t sz)
{
  TheCustomHeapType * theCustomHeap = getCustomHeap();
  void * ptr = theCustomHeap->malloc (sz);
  return ptr;
}
Exemplo n.º 3
0
 void * xxmalloc (size_t sz) {
   TheCustomHeapType * h = getCustomHeap();
   void * ptr = h->malloc (sz);
   return ptr;
 }
Exemplo n.º 4
0
extern "C" void * MYCDECL CUSTOM_MALLOC (size_t sz)
{
  TheCustomHeapType * theCustomHeap = getCustomHeap();
  void * ptr = theCustomHeap->malloc (sz);
  return ptr;
}