]>
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 licence
10 /////////////////////////////////////////////////////////////////////////////
15 #define WX_DEFINE_LIST(name)
17 #else // if !wxUSE_STL
19 #define _DEFINE_LIST(T, name) \
20 void wx##name##Node::DeleteData() \
22 delete (T *)GetData(); \
25 // redefine the macro so that now it will generate the class implementation
26 // old value would provoke a compile-time error if this file is not included
28 #define WX_DEFINE_LIST(name) _DEFINE_LIST(_WX_LIST_ITEM_TYPE_##name, name)
30 // don't pollute preprocessor's name space