]> git.saurik.com Git - wxWidgets.git/blame - include/wx/listimpl.cpp
Better name for wxXmlResource::GetDirection() argument.
[wxWidgets.git] / include / wx / listimpl.cpp
CommitLineData
fd3f686c 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/listimpl.cpp
fd3f686c 3// Purpose: second-part of macro based implementation of template lists
75c6c545 4// Author: Vadim Zeitlin
fd3f686c
VZ
5// Modified by:
6// Created: 16/11/98
fd3f686c 7// Copyright: (c) 1998 Vadim Zeitlin
65571936 8// Licence: wxWindows licence
fd3f686c 9/////////////////////////////////////////////////////////////////////////////
75c6c545 10
01871bf6 11#if wxUSE_STD_CONTAINERS
df5168c4 12
7d13fbc6
VZ
13#undef WX_DEFINE_LIST
14#define WX_DEFINE_LIST(name) \
15 void _WX_LIST_HELPER_##name::DeleteFunction( _WX_LIST_ITEM_TYPE_##name X )\
16 { \
17 delete X; \
18 } \
1bc5ddea 19 _WX_LIST_HELPER_##name::BaseListType _WX_LIST_HELPER_##name::EmptyList;
df5168c4 20
01871bf6 21#else // !wxUSE_STD_CONTAINERS
576adedb
VZ
22 #undef WX_DEFINE_LIST_2
23 #define WX_DEFINE_LIST_2(T, name) \
ed1288c1
VZ
24 void wx##name##Node::DeleteData() \
25 { \
26 delete (T *)GetData(); \
27 }
75c6c545 28
ed1288c1
VZ
29 // redefine the macro so that now it will generate the class implementation
30 // old value would provoke a compile-time error if this file is not included
31 #undef WX_DEFINE_LIST
576adedb 32 #define WX_DEFINE_LIST(name) WX_DEFINE_LIST_2(_WX_LIST_ITEM_TYPE_##name, name)
df5168c4 33
01871bf6 34#endif // wxUSE_STD_CONTAINERS/!wxUSE_STD_CONTAINERS
ed1288c1 35