summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Bus/Ivy/IvyStdAfx.cpp19
1 files changed, 16 insertions, 3 deletions
diff --git a/Bus/Ivy/IvyStdAfx.cpp b/Bus/Ivy/IvyStdAfx.cpp
index 5feeaf4..fa5d17b 100644
--- a/Bus/Ivy/IvyStdAfx.cpp
+++ b/Bus/Ivy/IvyStdAfx.cpp
@@ -11,8 +11,21 @@ void DebugTrace ( const char *fmt , ... )
char buffer[4096];
va_list args;
- va_start( args, fmt );
+ va_start( args, fmt );
vsprintf( buffer, fmt, args );
va_end( args );
- OutputDebugString( buffer );
-} \ No newline at end of file
+// OutputDebugStringA( buffer );
+}
+#ifdef WIN32
+#ifdef _DEBUG
+#include <crtdbg.h>
+void* __cdecl operator new(size_t nSize, const char * lpszFileName, int nLine)
+ {
+ return ::operator new(nSize, _NORMAL_BLOCK, lpszFileName, nLine);
+ }
+void __cdecl operator delete(void *p, const char * lpszFileName, int nLine)
+ {
+ ::operator delete(p, _NORMAL_BLOCK, lpszFileName, nLine);
+ }
+#endif
+#endif