code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
//**************************************
//
// Name: Alternative to the TRACE macro
// Description:If you create the followi
// ng pre-processor macro and then use this
// in place of a TRACE then the output is s
// uch that if you
double click on the line in the output window it takes you to the line of
code where the INFO statement is. It is great for navigating code quickly
while debugging.
//
#ifdef _DEBUG
#define INFO ::AfxTrace("%s(%i): ",__FILE__,__LINE__); ::AfxTrace
#else
#define INFO ((void)0)
#endif