]> git.saurik.com Git - wxWidgets.git/blame - include/wx/listimpl.cpp
Added GAddress_INET_SetAnyAddress and dummy UNIX address handling.
[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
VZ
8// Copyright: (c) 1998 Vadim Zeitlin
9// Licence: wxWindows license
10/////////////////////////////////////////////////////////////////////////////
75c6c545 11
fd3f686c
VZ
12#define _DEFINE_LIST(T, name) \
13 void wx##name##Node::DeleteData() \
14 { \
15 delete (T *)GetData(); \
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