Updates for os/2 -- mostly to allow easier VA debugging

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2000-10-24 21:45:56 +00:00
parent b078fa025d
commit 4720388fc5
2 changed files with 28 additions and 6 deletions

View File

@@ -214,7 +214,15 @@ class WXDLLEXPORT wxObject
#if defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING
void * operator new (size_t size, wxChar * fileName = NULL, int lineNum = 0);
#if defined(__VISAGECPP__)
#if __DEBUG_ALLOC__
void operator delete (void * buf,const char * _fname, size_t _line);
#endif //__DEBUG_ALLOC__
#else
void operator delete (void * buf);
#endif
// defined(__VISAGECPP__)
// VC++ 6.0
#if defined(__VISUALC__) && (__VISUALC__ >= 1200)
@@ -253,6 +261,14 @@ class WXDLLEXPORT wxObject
inline wxObjectRefData *GetRefData(void) const { return m_refData; }
inline void SetRefData(wxObjectRefData *data) { m_refData = data; }
//EK
#if defined(__WXDEBUG__) && defined(__VISAGECPP__)
public:
static int N;
static int Nid; // total number of objects and serial counter
int id; // serial number for current object
#endif // __WXDEBUG__
protected:
wxObjectRefData* m_refData;
#if wxUSE_SERIAL