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 /050scenario.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 '050scenario.cc')
-rw-r--r-- | 050scenario.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/050scenario.cc b/050scenario.cc index 13f24d78..15ac93d5 100644 --- a/050scenario.cc +++ b/050scenario.cc @@ -431,7 +431,7 @@ void check_memory(const string& s) { double value = to_double(rhs); if (contains_key(locations_checked, address)) raise << maybe(current_recipe_name()) << "duplicate expectation for location '" << address << "'\n" << end(); - trace(9999, "run") << "checking location " << address << end(); + trace("run") << "checking location " << address << end(); if (get_or_insert(Memory, address) != value) { if (!Hide_errors) cerr << '\n'; raise << "F - " << maybe(current_recipe_name()) << "expected location '" << address << "' to contain " << no_scientific(value) << " but saw " << no_scientific(get_or_insert(Memory, address)) << '\n' << end(); @@ -477,7 +477,7 @@ void check_type(const string& lhs, istream& in) { } void check_mu_text(int start, const string& literal) { - trace(9999, "run") << "checking text length at " << start << end(); + trace("run") << "checking text length at " << start << end(); int array_length = static_cast<int>(get_or_insert(Memory, start)); if (array_length != SIZE(literal)) { if (!Hide_errors) cerr << '\n'; @@ -487,7 +487,7 @@ void check_mu_text(int start, const string& literal) { } int curr = start+1; // now skip length for (int i = 0; i < SIZE(literal); ++i) { - trace(9999, "run") << "checking location " << curr+i << end(); + trace("run") << "checking location " << curr+i << end(); if (get_or_insert(Memory, curr+i) != literal.at(i)) { if (!Hide_errors) cerr << '\n'; raise << "F - " << maybe(current_recipe_name()) << "expected location " << (curr+i) << " to contain " << literal.at(i) << " but saw " << no_scientific(get_or_insert(Memory, curr+i)) << '\n' << end(); |