3 // Copyright (c) 2005 David Ward
9 // Track memory leaks on Windows to the line that new'd the memory
12 #define DEBUG_NEW new( _NORMAL_BLOCK, THIS_FILE, __LINE__ )
15 static char THIS_FILE
[] = __FILE__
;
19 // Customize behaviour of Trace here
23 // On Windows, send Trace to the Debug window in DevStudio
24 // The ATL/MFC Trace application also picks up Trace when running
28 void DasherTraceOutputImpl(const char *pszFormat
, va_list vargs
) {
31 // _vsnprintf(buffer, 2048,pszFormat, vargs);
32 // OutputDebugStringA(buffer);
37 // Send Trace to stdout
39 void DasherTraceOutputImpl(const char *pszFormat
, va_list vargs
) {
40 vfprintf(stdout
, pszFormat
, vargs
);