diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-08-05 08:26:09 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-08-05 08:26:09 -0700 |
commit | b817d4bd2229718ee1a5649280d63a06812f8123 (patch) | |
tree | ce43ea0d5ccad0845e305f5b7967d7744c9bff8a | |
parent | 75eb73e0288b1f75a213707b2e7faafc82f5de8a (diff) | |
download | mu-b817d4bd2229718ee1a5649280d63a06812f8123.tar.gz |
4486
-rw-r--r-- | subx/003trace.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/subx/003trace.cc b/subx/003trace.cc index 7dab5d5c..6d04b6b2 100644 --- a/subx/003trace.cc +++ b/subx/003trace.cc @@ -76,15 +76,6 @@ struct trace_line { trace_line(int d, string l, string c) :depth(d), label(l), contents(c) {} }; -:(before "End Globals") -bool Hide_errors = false; // if set, don't print even error trace lines to screen -bool Dump_trace = false; // if set, print trace lines to screen -string Dump_label = ""; // if set, print trace lines matching a single label to screen -:(before "End Reset") -Hide_errors = false; -Dump_trace = false; -Dump_label = ""; - //: Support for tracing an entire run. //: Traces can have a lot of overhead, so only turn them on when asked. :(before "End Commandline Options(*arg)") @@ -183,6 +174,15 @@ string trace_stream::readable_contents(string label) { trace_stream* Trace_stream = NULL; int Trace_errors = 0; // used only when Trace_stream is NULL +:(before "End Globals") +bool Hide_errors = false; // if set, don't print even error trace lines to screen +bool Dump_trace = false; // if set, print trace lines to screen +string Dump_label = ""; // if set, print trace lines matching a single label to screen +:(before "End Reset") +Hide_errors = false; +Dump_trace = false; +Dump_label = ""; + :(before "End Includes") #define CLEAR_TRACE delete Trace_stream, Trace_stream = new trace_stream; |