about summary refs log tree commit diff stats
path: root/cpp
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-14 19:34:17 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-14 19:34:17 -0700
commit064a1c0aca0b76843ae767421d70d2791f50335b (patch)
tree2ef25f114584ba622bcbe56ea77229ce1b906101 /cpp
parent979403c6f624aab26e5ce5c619b2581ab688e521 (diff)
downloadmu-064a1c0aca0b76843ae767421d70d2791f50335b.tar.gz
918
Diffstat (limited to 'cpp')
-rw-r--r--cpp/002trace2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/002trace b/cpp/002trace
index e3ebd17e..796ad7f1 100644
--- a/cpp/002trace
+++ b/cpp/002trace
@@ -182,7 +182,7 @@ ostream& operator<<(ostream& os, unused die) {
 
 #define CLEAR_TRACE  delete Trace_stream, Trace_stream = new trace_stream;
 
-#define DUMP(layer)  cerr << Trace_stream->readable_contents(layer)
+#define DUMP(layer)  if (Trace_stream) cerr << Trace_stream->readable_contents(layer);
 
 // Trace_stream is a resource, lease_tracer uses RAII to manage it.
 string Trace_file;