]> git.saurik.com Git - wxWidgets.git/blob - include/wx/listimpl.cpp
Added wxMenu::UpdateUI to wxMSW, wxGTK, wxMotif, wxStubs; rearranged/debugged
[wxWidgets.git] / include / wx / listimpl.cpp
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$
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