1
/////////////////////////////////////////////////////////////////////////////
3
// Purpose: second-part of macro based implementation of template lists
4
// Author: Vadim Zeitlin
7
// RCS-ID: $Id: listimpl.cpp,v 1.8.2.1 2006/01/17 19:02:24 JS Exp $
8
// Copyright: (c) 1998 Vadim Zeitlin
9
// Licence: wxWindows licence
10
/////////////////////////////////////////////////////////////////////////////
15
#define WX_DEFINE_LIST(name) \
16
void name::DeleteFunction( _WX_DELETEFUNCTIONCONST _WX_LIST_ITEM_TYPE_##name X ) \
21
#else // if !wxUSE_STL
23
#define _DEFINE_LIST(T, name) \
24
void wx##name##Node::DeleteData() \
26
delete (T *)GetData(); \
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
32
#define WX_DEFINE_LIST(name) _DEFINE_LIST(_WX_LIST_ITEM_TYPE_##name, name)
34
// don't pollute preprocessor's name space