diff options
Diffstat (limited to 'cpp/002trace')
-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; |