home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2240.zip / wxWindows-2.4.0 / include / wx / listimpl.cpp < prev    next >
Text File  |  2000-07-15  |  1KB  |  25 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name:        listimpl.cpp
  3. // Purpose:     second-part of macro based implementation of template lists
  4. // Author:      Vadim Zeitlin
  5. // Modified by:
  6. // Created:     16/11/98
  7. // RCS-ID:      $Id: listimpl.cpp,v 1.4 2000/07/15 19:49:56 cvsuser Exp $
  8. // Copyright:   (c) 1998 Vadim Zeitlin
  9. // Licence:     wxWindows license
  10. /////////////////////////////////////////////////////////////////////////////
  11.  
  12. #define _DEFINE_LIST(T, name)                   \
  13.     void wx##name##Node::DeleteData()    \
  14.     {                                           \
  15.         delete (T *)GetData();                  \
  16.     }
  17.  
  18. // redefine the macro so that now it will generate the class implementation
  19. // old value would provoke a compile-time error if this file is not included
  20. #undef  WX_DEFINE_LIST
  21. #define WX_DEFINE_LIST(name) _DEFINE_LIST(_WX_LIST_ITEM_TYPE_##name, name)
  22.  
  23. // don't pollute preprocessor's name space
  24. //#undef  _DEFINE_LIST
  25.