diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-03-14 19:34:17 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-03-14 19:34:17 -0700 |
commit | 064a1c0aca0b76843ae767421d70d2791f50335b (patch) | |
tree | 2ef25f114584ba622bcbe56ea77229ce1b906101 /cpp | |
parent | 979403c6f624aab26e5ce5c619b2581ab688e521 (diff) | |
download | mu-064a1c0aca0b76843ae767421d70d2791f50335b.tar.gz |
918
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/002trace | 2 |
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; |