Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

debug.hh

Go to the documentation of this file.
00001 #ifndef DEBUG_HH
00002 #define DEBUG_HH
00003 
00004 #if 1
00005 
00006 extern int debug_level;
00007 extern int version_flag;
00008 
00009 #define debug(dl) if (dl <= debug_level) { cerr \
00010                                              << ": " \
00011                                              << hex << (unsigned int)this << dec \
00012                                              << ": "__FILE__ << ":" \
00013                                              << __FUNCTION__ << ":" \
00014                                              << __LINE__ << ": "
00015 
00016 #define endd endl; }
00017 
00018 // For use outside of a class or in static class functions
00019 #define debug_static(dl) if (dl <= debug_level) { \
00020   cerr << << "main"\
00021        << ": "__FILE__ << ":" << __FUNCTION__ << ":" << __LINE__ << ": "
00022 
00023 // Doc++ likes to see an even number of {'s and }'s
00024 #define MAKE_DOCXX_HAPPY_HACK }
00025 
00026 #endif
00027 
00028 #endif

Generated on Tue Apr 2 15:33:22 2002 for libccunit by doxygen 1.2.14 written by Dimitri van Heesch, © 1997-2002

Project hosted on sourceforge SourceForge Logo