X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/201812a8502c16d577bebb4c0e61ea0b35d6e0f6..5a8c929eb49b1ecfad4fa3c3d4e7dbd11213653a:/include/wx/memory.h diff --git a/include/wx/memory.h b/include/wx/memory.h index 468acdfabf..b0ab9a02df 100644 --- a/include/wx/memory.h +++ b/include/wx/memory.h @@ -23,7 +23,7 @@ info, or to be a straight call to the new operator. */ -#if (DEBUG && USE_MEMORY_TRACING) || USE_DEBUG_CONTEXT +#if (WXDEBUG && USE_MEMORY_TRACING) || USE_DEBUG_CONTEXT #include @@ -39,7 +39,7 @@ #define WXDEBUG_NEW new(__FILE__,__LINE__) #endif -#if DEBUG +#if WXDEBUG void * wxDebugAlloc(size_t size, char * fileName, int lineNum, bool isObject, bool isVect = FALSE); void wxDebugFree(void * buf, bool isVect = FALSE); @@ -56,7 +56,7 @@ void wxDebugFree(void * buf, bool isVect = FALSE); void * operator new (size_t size, char * fileName, int lineNum); void operator delete (void * buf); -#if !( defined (_MSC_VER) && (_MSC_VER <= 800) ) +#if !( defined (_MSC_VER) && (_MSC_VER <= 1000) ) void * operator new[] (size_t size, char * fileName, int lineNum); void operator delete[] (void * buf); #endif @@ -263,7 +263,7 @@ void WXDLLEXPORT wxTraceLevel(int level, const char *fmt ...); #define WXTRACE wxTrace #define WXTRACELEVEL wxTraceLevel -#else // else part for the #if DEBUG +#else // else part for the #if WXDEBUG inline void wxTrace(const char *WXUNUSED(fmt)) {} inline void wxTraceLevel(int WXUNUSED(level), const char *WXUNUSED(fmt)) {} @@ -272,7 +272,7 @@ inline void wxTraceLevel(int WXUNUSED(level), const char *WXUNUSED(fmt)) {} #define WXTRACELEVEL TRUE ? (void)0 : wxTraceLevel #define WXDEBUG_NEW new -#endif // DEBUG +#endif // WXDEBUG #endif // __MEMORYH__