home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff280.lzh / Graph / tracker.h < prev    next >
C/C++ Source or Header  |  1989-11-20  |  1KB  |  38 lines

  1. /* Resource tracking routines, by Karl Lehenbauer
  2.    Lattice version by David Gay.
  3.    This code is in the public domain
  4. */
  5.  
  6. #ifdef DEBUG
  7. /* tracking macros to use tracker routines */
  8.  
  9. #define AllocMem(x,y) TrackingAllocMem((x),(y),__FILE__,__LINE__)
  10. #define FreeMem(x,y) TrackingFreeMem((x),(y),__FILE__,__LINE__)
  11.  
  12. #define AllocSignal(x) TrackingAllocSignal((x),__FILE__,__LINE__)
  13. #define FreeSignal(x) TrackingFreeSignal((x),__FILE__,__LINE__);
  14.  
  15. #define Lock(x,y) TheTrackingLock((x),(y),__FILE__,__LINE__);
  16. #define UnLock(x) TheTrackingUnLock((x),__FILE__,__LINE__);
  17. #define DupLock(x) TheTrackingDupLock((x),__FILE__,__LINE__);
  18. #define ParentDir(x) TheTrackingParentDir((x),__FILE__,__LINE__);
  19.  
  20. void *TrackingAllocMem(long amount, long flags, char *file, int line);
  21. void TrackingFreeMem(void *where, long amount, char *file, int line);
  22.  
  23. long TrackingAllocSignal(long signal_num, char *file, int line);
  24. void TrackingFreeSignal(long signal_num, char *file, int line);
  25.  
  26. void *TrackingAllocRaster();
  27. void TrackingFreeRaster();
  28.  
  29. BPTR TheTrackingLock(char *name, long accessMode, char *file, int line);
  30. BPTR TheTrackingDupLock(BPTR lock, char *file, int line);
  31. void TheTrackingUnLock(BPTR lock, char *file, int line);
  32. BPTR TheTrackingParentDir(BPTR lock, char *file, int line);
  33.  
  34. void TrackerExitReport(void);
  35.  
  36. #endif
  37.  
  38.