about summary refs log tree commit diff stats
path: root/003trace.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-09-15 19:48:53 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-09-15 19:48:53 -0700
commit06584c523ae1362d59c9c9285deaa48c13c4d123 (patch)
tree756b37ddf6cdb9c7fce4bd9c875692334b9038e0 /003trace.cc
parentdbf64731bc5313e2ceed16990680468ce977e3f2 (diff)
downloadmu-06584c523ae1362d59c9c9285deaa48c13c4d123.tar.gz
2202 - don't let editor die on syntax errors
Bugfix to 2186. I hadn't taken care of 'reload' as cleanly as I had
'run-interactive'.
Diffstat (limited to '003trace.cc')
-rw-r--r--003trace.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/003trace.cc b/003trace.cc
index 40a8ff9b..c5e651c9 100644
--- a/003trace.cc
+++ b/003trace.cc
@@ -206,6 +206,7 @@ START_TRACING_UNTIL_END_OF_SCOPE
 
 :(before "End Tracing")
 bool check_trace_contents(string FUNCTION, string FILE, int LINE, string expected) {  // missing layer == anywhere
+  if (!Trace_stream) return false;
   vector<string> expected_lines = split(expected, "");
   long long int curr_expected_line = 0;
   while (curr_expected_line < SIZE(expected_lines) && expected_lines.at(curr_expected_line).empty())