summaryrefslogtreecommitdiff
path: root/lib/mystring/trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mystring/trace.h')
-rw-r--r--lib/mystring/trace.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/mystring/trace.h b/lib/mystring/trace.h
new file mode 100644
index 0000000..d6942a7
--- /dev/null
+++ b/lib/mystring/trace.h
@@ -0,0 +1,11 @@
+/* $Id: trace.h 616 2005-08-19 20:11:01Z bruce $ */
+#include "mystring.h"
+
+#ifdef MYSTRING_TRACE
+ostream& operator<<(ostream& out, const mystringtmp& s);
+#define trace(X) cerr << (void*)this << "->" << __PRETTY_FUNCTION__ << X << endl
+#define trace_static(X) cerr << __PRETTY_FUNCTION__ << X << endl
+#else
+#define trace(X) do { } while(0)
+#define trace_static(X) do { } while(0)
+#endif