]> git.saurik.com Git - wxWidgets.git/blame - include/wx/listimpl.cpp
Unicode compilation fix after last commit
[wxWidgets.git] / include / wx / listimpl.cpp
CommitLineData
fd3f686c 1/////////////////////////////////////////////////////////////////////////////
75c6c545 2// Name: 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
75c6c545 7// RCS-ID: $Id$
fd3f686c 8// Copyright: (c) 1998 Vadim Zeitlin
65571936 9// Licence: wxWindows licence
fd3f686c 10/////////////////////////////////////////////////////////////////////////////
75c6c545 11
df5168c4
MB
12#if wxUSE_STL
13
ed1288c1 14 #undef WX_DEFINE_LIST
30a29593
VZ
15 #define WX_DEFINE_LIST(name) \
16 void _WX_LIST_HELPER_##name::DeleteFunction( _WX_LIST_ITEM_TYPE_##name X ) \
17 { \
18 delete X; \
ed1288c1 19 }
df5168c4
MB
20
21#else // if !wxUSE_STL
22
ed1288c1
VZ
23 #define _DEFINE_LIST(T, name) \
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
32 #define WX_DEFINE_LIST(name) _DEFINE_LIST(_WX_LIST_ITEM_TYPE_##name, name)
75c6c545 33
ed1288c1
VZ
34 // don't pollute preprocessor's name space
35 //#undef _DEFINE_LIST
df5168c4
MB
36
37#endif
ed1288c1 38