1998-11-24 23:30:50 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
1998-05-30 23:42:51 +00:00
|
|
|
// Name: listimpl.cpp
|
1998-11-24 23:30:50 +00:00
|
|
|
// Purpose: second-part of macro based implementation of template lists
|
1998-05-30 23:42:51 +00:00
|
|
|
// Author: Vadim Zeitlin
|
1998-11-24 23:30:50 +00:00
|
|
|
// Modified by:
|
|
|
|
// Created: 16/11/98
|
1998-05-30 23:42:51 +00:00
|
|
|
// RCS-ID: $Id$
|
1998-11-24 23:30:50 +00:00
|
|
|
// Copyright: (c) 1998 Vadim Zeitlin
|
2000-02-25 19:23:11 +00:00
|
|
|
// Licence: wxWindows license
|
1998-11-24 23:30:50 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
1998-05-30 23:42:51 +00:00
|
|
|
|
2000-07-15 19:51:35 +00:00
|
|
|
#define _DEFINE_LIST(T, name) \
|
|
|
|
void wx##name##Node::DeleteData() \
|
|
|
|
{ \
|
|
|
|
delete (T *)GetData(); \
|
1998-11-24 23:30:50 +00:00
|
|
|
}
|
1998-05-30 23:42:51 +00: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 23:30:50 +00:00
|
|
|
#define WX_DEFINE_LIST(name) _DEFINE_LIST(_WX_LIST_ITEM_TYPE_##name, name)
|
1998-05-30 23:42:51 +00:00
|
|
|
|
|
|
|
// don't pollute preprocessor's name space
|
1998-11-24 23:30:50 +00:00
|
|
|
//#undef _DEFINE_LIST
|