#define Debug::DBG | (cname) |
A macro that gives an output stream into which it has written the name of the debug variable.
A macro that gives an output stream into which it has written the name of the debug variable. Example:DBG(dbg) << "Help! The zombie grepped me with a pipe!\n"; *Note that the name printed is not the name of the C++ variable but the name used in DBGVAR to define it, through a little magic.Using this macro gives us the option, at a later date, to redirect different streams to different files. It's also shorter than
* if(dbg) cout << *
Alphabetic index Hierarchy of classes