Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1.  
  2.  
  3. #ifndef __debugmem_h__
  4. #define __debugmem_h__
  5.  
  6.  
  7. #ifdef YACAS_DEBUG
  8.  
  9. #ifdef NO_GLOBALS
  10. #error "Memory heap checking only possible with global variables!"
  11. #endif
  12.  
  13.   void* YacasMallocPrivate(unsigned long size, const char* aFile, int aLine);
  14.   void* YacasReAllocPrivate(void* orig, unsigned long size, const char* aFile, int aLine);
  15.   void YacasFreePrivate(void* aOrig);
  16.   void CheckPtr(void * anAllocatedPtr, const char* file, int line);
  17.   void CheckAllPtrs(int final = 0);
  18. #endif
  19.  
  20. #endif
  21.  
  22.  
  23.  
  24.