diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-11-03 01:50:46 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-11-03 01:50:46 -0700 |
commit | a89c1bed26fd05fc25034e43901c7f03351721a2 (patch) | |
tree | 1f269a69ecc25d84c2fd99070a9be79c491b0c9f /026call.cc | |
parent | a3195d440d2f0e99400db78e5a4386691c94a9a0 (diff) | |
download | mu-a89c1bed26fd05fc25034e43901c7f03351721a2.tar.gz |
4104
Stop hardcoding Max_depth everywhere; we had a default value for a reason but then we forgot all about it.
Diffstat (limited to '026call.cc')
-rw-r--r-- | 026call.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/026call.cc b/026call.cc index 6b7a14f7..d718a9ce 100644 --- a/026call.cc +++ b/026call.cc @@ -60,7 +60,7 @@ struct routine { routine::routine(recipe_ordinal r) { if (Trace_stream) { ++Trace_stream->callstack_depth; - trace(9999, "trace") << "new routine; incrementing callstack depth to " << Trace_stream->callstack_depth << end(); + trace("trace") << "new routine; incrementing callstack depth to " << Trace_stream->callstack_depth << end(); assert(Trace_stream->callstack_depth < 9000); // 9998-101 plus cushion } calls.push_front(call(r)); @@ -143,7 +143,7 @@ default: { // not a primitive; look up the book of recipes if (Trace_stream) { ++Trace_stream->callstack_depth; - trace(9999, "trace") << "incrementing callstack depth to " << Trace_stream->callstack_depth << end(); + trace("trace") << "incrementing callstack depth to " << Trace_stream->callstack_depth << end(); assert(Trace_stream->callstack_depth < 9000); // 9998-101 plus cushion } const call& caller_frame = current_call(); @@ -193,7 +193,7 @@ const vector<instruction>& routine::steps() const { while (current_step_index() >= SIZE(Current_routine->steps())) { // Falling Through End Of Recipe if (Trace_stream) { - trace(9999, "trace") << "fall-through: exiting " << current_recipe_name() << "; decrementing callstack depth from " << Trace_stream->callstack_depth << end(); + trace("trace") << "fall-through: exiting " << current_recipe_name() << "; decrementing callstack depth from " << Trace_stream->callstack_depth << end(); --Trace_stream->callstack_depth; assert(Trace_stream->callstack_depth >= 0); } |