00001 #ifndef DEBUGGERING_MACROS_H 00002 #define DEBUGGERING_MACROS_H 1 00003 00004 // CERR is a drop-in replacement for std::cerr, but slightly more 00005 // decorative. 00006 #ifndef CERR 00007 #define CERR std::cerr << __FILE__ << ":" << std::dec << __LINE__ << " : " 00008 #define CERRL(A) CERR << A << std::endl; 00009 #endif 00010 00011 #ifndef COUT 00012 #define COUT std::cout << __FILE__ << ":" << std::dec << __LINE__ << " : " 00013 #define COUTL(A) COUT << A << std::endl; 00014 #endif 00015 00016 00017 #endif // DEBUGGERING_MACROS_H