]> git.saurik.com Git - wxWidgets.git/blame - include/wx/listimpl.cpp
Fixed size problem due to wxMac window implementation difference
[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
bcaa23de 9// Licence: wxWindows license
fd3f686c 10/////////////////////////////////////////////////////////////////////////////
75c6c545 11
df5168c4
MB
12#if wxUSE_STL
13
14#undef WX_DEFINE_LIST
15#define WX_DEFINE_LIST(name)
16
17#else // if !wxUSE_STL
18
f6bcfd97
BP
19#define _DEFINE_LIST(T, name) \
20 void wx##name##Node::DeleteData() \
21 { \
22 delete (T *)GetData(); \
fd3f686c 23 }
75c6c545
VZ
24
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
27#undef WX_DEFINE_LIST
fd3f686c 28#define WX_DEFINE_LIST(name) _DEFINE_LIST(_WX_LIST_ITEM_TYPE_##name, name)
75c6c545
VZ
29
30// don't pollute preprocessor's name space
fd3f686c 31//#undef _DEFINE_LIST
df5168c4
MB
32
33#endif