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