diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-08-20 15:41:18 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-08-20 15:41:18 -0700 |
commit | a2a0e711aff7c442c95a695bc0b6ba543fff0cd2 (patch) | |
tree | 6326c62fd4531688d12bdc1f88e150f26e5b854c | |
parent | 8be142845b48028ce2ddd7e59fdef39f67fb5b6a (diff) | |
download | mu-a2a0e711aff7c442c95a695bc0b6ba543fff0cd2.tar.gz |
2043
Traces were changing based on whether I was loading a .mu file with 'main' or not.
-rw-r--r-- | 010vm.cc | 1 | ||||
-rw-r--r-- | 040brace.cc | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/010vm.cc b/010vm.cc index c9bfaa5d..92e7d14a 100644 --- a/010vm.cc +++ b/010vm.cc @@ -161,6 +161,7 @@ void setup_recipes() { setup_recipes(); assert(MAX_PRIMITIVE_RECIPES < 200); // level 0 is primitives; until 199 Next_recipe_ordinal = 200; +Recipe_ordinal["main"] = Next_recipe_ordinal++; // End Load Recipes :(before "End Test Run Initialization") assert(Next_recipe_ordinal < 1000); // recipes being tested didn't overflow into test space diff --git a/040brace.cc b/040brace.cc index 113a7517..7819cd58 100644 --- a/040brace.cc +++ b/040brace.cc @@ -45,7 +45,7 @@ void transform_braces(const recipe_ordinal r) { for (long long int index = 0; index < SIZE(Recipe[r].steps); ++index) { const instruction& inst = Recipe[r].steps.at(index); if (inst.label == "{") { - trace("brace") << r << ": push (open, " << index << ")" << end(); + trace("brace") << Recipe[r].name << ": push (open, " << index << ")" << end(); braces.push_back(pair<int,long long int>(OPEN, index)); } if (inst.label == "}") { |