#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)
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
+#ifndef _WX_WXH__
+#define _WX_WXH__
+
/////////////////////////////////////////////////////////////////////////////
// Name: wx.h
// Purpose: wxWindows main include file
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifndef _WX_WXH__
-#define _WX_WXH__
-
#include "wx/defs.h"
#include "wx/object.h"
#include "wx/dynarray.h"
#include "wx/radiobut.h"
#include "wx/textctrl.h"
#include "wx/slider.h"
+#if !defined(__VISAGECPP__) // cyclic dependency
#include "wx/gauge.h"
+#include "wx/scrolwin.h"
+#include "wx/dirdlg.h"
+#include "wx/toolbar.h"
+#endif
#include "wx/combobox.h"
#include "wx/layout.h"
#include "wx/sizer.h"
#include "wx/memory.h"
#include "wx/mdi.h"
-#include "wx/scrolwin.h"
#include "wx/statusbr.h"
#include "wx/scrolbar.h"
#include "wx/choicdlg.h"
#include "wx/textdlg.h"
#include "wx/filedlg.h"
-#include "wx/dirdlg.h"
-#include "wx/toolbar.h"
#include "wx/validate.h" // always include, even if !wxUSE_VALIDATORS
+#if !defined(__VISAGECPP__) // cyclic dependency
+
#if wxUSE_VALIDATORS
#include "wx/valtext.h"
#endif // wxUSE_VALIDATORS
#include "wx/serbase.h"
#endif // wxUSE_SERIAL
+#endif // __VISAGECPP__
+
#endif // wxUSE_GUI
#endif