/[libvob]/libvob/include/vob/Debug.hxx
ViewVC logotype

Diff of /libvob/include/vob/Debug.hxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by tjl, Wed Mar 12 13:37:57 2003 UTC revision 1.3 by tjl, Sun Apr 20 10:24:04 2003 UTC
# Line 39  namespace Vob { Line 39  namespace Vob {
39   * debugging.   * debugging.
40   */   */
41  namespace Debug {  namespace Debug {
42    
43        extern std::ostream *debugStream();
44    
45  /** A macro to get a reference to a debug variable.  /** A macro to get a reference to a debug variable.
46   * Example:   * Example:
47   * <pre>   * <pre>
# Line 81  namespace Debug { Line 84  namespace Debug {
84   *      if(dbg) cout <<   *      if(dbg) cout <<
85   * </pre>   * </pre>
86   */   */
87  #define DBG(cname) if(!cname);else (std::cout << cname##___DBGNAME << ": ")  #define DBG(cname) if(!cname);else ((*(::Vob::Debug::debugStream())) << cname##___DBGNAME << ": ")
88    
89    /** Get a variable reference by name.    /** Get a variable reference by name.
90     * If the name does not exist, a new name is created with an     * If the name does not exist, a new name is created with an

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26