home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 28 / amigaformatcd28.iso / -seriously_amiga- / programming / c / asap / freelist_.h < prev    next >
C/C++ Source or Header  |  1998-04-23  |  1KB  |  37 lines

  1. /*****************************************************************************
  2.  *                                                                           *
  3.  * ASAP - Amiga Software Authoring Platform                                  *
  4.  *                                                                           *
  5.  * Written by Laurie Perrin                                                  *
  6.  *                                                                           *
  7.  * AFreeList wrapper class                                                   *
  8.  *                                                                           *
  9.  *****************************************************************************/
  10.  
  11. #ifndef ASAP_FreeList_H
  12. #define ASAP_FreeList_H
  13.  
  14. extern "C"
  15. {
  16.  #include <Proto/Icon.h>
  17. }
  18.  
  19. class AFreeList : public FreeList
  20. {
  21.  public:
  22.  inline BOOL AddFreeList(APTR mem, unsigned long size);
  23.  inline void FreeFreeList();
  24. };
  25. //----------------------------------------------------------------------------
  26. BOOL AFreeList::AddFreeList (APTR mem, unsigned long size)
  27. {
  28.  return ::AddFreeList(this, mem, size);
  29. }
  30. //----------------------------------------------------------------------------
  31. void AFreeList::FreeFreeList ()
  32. {
  33.  ::FreeFreeList(this);
  34. }
  35.  
  36. #endif
  37.