1998-11-24 18:30:50 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
1998-05-30 19:42:51 -04:00
|
|
|
// Name: listimpl.cpp
|
1998-11-24 18:30:50 -05:00
|
|
|
// Purpose: second-part of macro based implementation of template lists
|
1998-05-30 19:42:51 -04:00
|
|
|
// Author: Vadim Zeitlin
|
1998-11-24 18:30:50 -05:00
|
|
|
// Modified by:
|
|
|
|
// Created: 16/11/98
|
1998-05-30 19:42:51 -04:00
|
|
|
// RCS-ID: $Id$
|
1998-11-24 18:30:50 -05:00
|
|
|
// Copyright: (c) 1998 Vadim Zeitlin
|
2000-02-25 14:23:11 -05:00
|
|
|
// Licence: wxWindows license
|
1998-11-24 18:30:50 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
1998-05-30 19:42:51 -04:00
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
#define _DEFINE_LIST(T, name) \
|
|
|
|
void wx##name##Node::DeleteData() \
|
|
|
|
{ \
|
|
|
|
delete (T *)GetData(); \
|
1998-11-24 18:30:50 -05:00
|
|
|
}
|
1998-05-30 19:42:51 -04:00
|
|
|
|
|
|
|
// redefine the macro so that now it will generate the class implementation
|
|
|
|
// old value would provoke a compile-time error if this file is not included
|
|
|
|
#undef WX_DEFINE_LIST
|
1998-11-24 18:30:50 -05:00
|
|
|
#define WX_DEFINE_LIST(name) _DEFINE_LIST(_WX_LIST_ITEM_TYPE_##name, name)
|
1998-05-30 19:42:51 -04:00
|
|
|
|
|
|
|
// don't pollute preprocessor's name space
|
1998-11-24 18:30:50 -05:00
|
|
|
//#undef _DEFINE_LIST
|