]> git.saurik.com Git - wxWidgets.git/blame - include/wx/listimpl.cpp
wxCalendarCtrl::Destroy() now deletes year spin control and
[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
f6bcfd97
BP
12#define _DEFINE_LIST(T, name) \
13 void wx##name##Node::DeleteData() \
14 { \
15 delete (T *)GetData(); \
fd3f686c 16 }
75c6c545
VZ
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
fd3f686c 21#define WX_DEFINE_LIST(name) _DEFINE_LIST(_WX_LIST_ITEM_TYPE_##name, name)
75c6c545
VZ
22
23// don't pollute preprocessor's name space
fd3f686c 24//#undef _DEFINE_LIST