Various wxMotif changes including size optimisation and debugging operator fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -951,6 +951,25 @@ void * operator new (size_t size, char * fileName, int lineNum)
|
||||
#endif
|
||||
}
|
||||
|
||||
// Added JACS 25/11/98
|
||||
void * operator new (size_t size)
|
||||
{
|
||||
#ifdef NO_DEBUG_ALLOCATION
|
||||
return malloc(size);
|
||||
#else
|
||||
return wxDebugAlloc(size, NULL, 0, FALSE);
|
||||
#endif
|
||||
}
|
||||
|
||||
void * operator new[] (size_t size)
|
||||
{
|
||||
#ifdef NO_DEBUG_ALLOCATION
|
||||
return malloc(size);
|
||||
#else
|
||||
return wxDebugAlloc(size, NULL, 0, FALSE, TRUE);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !( defined (_MSC_VER) && (_MSC_VER <= 1020) )
|
||||
void * operator new[] (size_t size, char * fileName, int lineNum)
|
||||
{
|
||||
|
Reference in New Issue
Block a user