#include "wx/defs.h"
#endif
-#if (DEBUG && USE_MEMORY_TRACING) || USE_DEBUG_CONTEXT
+#if (WXDEBUG && USE_MEMORY_TRACING) || USE_DEBUG_CONTEXT
#ifdef __GNUG__
// #pragma implementation
#include <stdarg.h>
#include <string.h>
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
#include <windows.h>
#ifdef GetClassInfo
*/
bool wxDebugContext::PrintList (void)
{
-#if DEBUG
+#if WXDEBUG
if (!HasStream())
return FALSE;
bool wxDebugContext::Dump(void)
{
-#if DEBUG
+#if WXDEBUG
if (!HasStream())
return FALSE;
bool wxDebugContext::PrintStatistics(bool detailed)
{
-#if DEBUG
+#if WXDEBUG
if (!HasStream())
return FALSE;
// We'll only do malloc and free for the moment: leave the interesting
// stuff for the wxObject versions.
-#if DEBUG && USE_GLOBAL_MEMORY_OPERATORS
+#if WXDEBUG && USE_GLOBAL_MEMORY_OPERATORS
#ifdef new
#undef new
#endif
}
+#if !( defined (_MSC_VER) && (_MSC_VER <= 1000) )
void * operator new[] (size_t size, char * fileName, int lineNum)
{
#ifdef NO_DEBUG_ALLOCATION
return wxDebugAlloc(size, fileName, lineNum, FALSE, TRUE);
#endif
}
+#endif
void operator delete (void * buf)
{
#endif
}
+#if !( defined (_MSC_VER) && (_MSC_VER <= 1000) )
void operator delete[] (void * buf)
{
#ifdef NO_DEBUG_ALLOCATION
wxDebugFree(buf, TRUE);
#endif
}
+#endif
#endif
va_start(ap, fmt);
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
wvsprintf(buffer,fmt,ap) ;
#else
vsprintf(buffer,fmt,ap) ;
wxDebugContext::GetStream().flush();
}
else
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
OutputDebugString((LPCSTR)buffer) ;
#else
fprintf(stderr, buffer);
va_start(ap, fmt);
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
wvsprintf(buffer,fmt,ap) ;
#else
vsprintf(buffer,fmt,ap) ;
wxDebugContext::GetStream().flush();
}
else
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
OutputDebugString((LPCSTR)buffer) ;
#else
fprintf(stderr, buffer);
#endif
}
-#else // USE_MEMORY_TRACING && DEBUG
+#else // USE_MEMORY_TRACING && WXDEBUG
void wxTrace(const char *WXUNUSED(fmt) ...)
{
}