1 /* $Id: trace.h 616 2005-08-19 20:11:01Z bruce $ */ 2 #include "mystring.h" 3 4 #ifdef MYSTRING_TRACE 5 ostream& operator<<(ostream& out, const mystringtmp& s); 6 #define trace(X) cerr << (void*)this << "->" << __PRETTY_FUNCTION__ << X << endl 7 #define trace_static(X) cerr << __PRETTY_FUNCTION__ << X << endl 8 #else 9 #define trace(X) do { } while(0) 10 #define trace_static(X) do { } while(0) 11 #endif 12