]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/listimpl.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: second-part of macro based implementation of template lists
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 1998 Vadim Zeitlin
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 #define _DEFINE_LIST(T, name) \
13 void wx##name##Node::DeleteData() \
15 delete (T *)GetData(); \
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
21 #define WX_DEFINE_LIST(name) _DEFINE_LIST(_WX_LIST_ITEM_TYPE_##name, name)
23 // don't pollute preprocessor's name space