diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-03-27 22:17:03 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-03-27 22:17:03 -0700 |
commit | d3902ff0be0de6ea0cf523a42605b80715e33f38 (patch) | |
tree | 3b76c541b2f34ef26997c15d51b3cf445ba31851 | |
parent | 7cca03bd11fa6bd810231d104e90332978dacfd8 (diff) | |
download | mu-d3902ff0be0de6ea0cf523a42605b80715e33f38.tar.gz |
2816
Move all bounds checks for types and recipes to one place.
-rw-r--r-- | 010vm.cc | 2 | ||||
-rw-r--r-- | 020run.cc | 1 | ||||
-rw-r--r-- | 057shape_shifting_container.cc | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/010vm.cc b/010vm.cc index c3618ffe..93145185 100644 --- a/010vm.cc +++ b/010vm.cc @@ -203,7 +203,7 @@ assert(MAX_PRIMITIVE_RECIPES < 200); // level 0 is primitives; until 199 Next_recipe_ordinal = 200; put(Recipe_ordinal, "main", Next_recipe_ordinal++); // End Load Recipes -:(before "End Test Run Initialization") +:(before "End Commandline Parsing") assert(Next_recipe_ordinal < 1000); // recipes being tested didn't overflow into test space :(before "End Setup") Next_recipe_ordinal = 1000; // consistent new numbers for each test diff --git a/020run.cc b/020run.cc index 95bdbe87..1ebd187a 100644 --- a/020run.cc +++ b/020run.cc @@ -156,7 +156,6 @@ if (argc > 1) { argc--; } if (Run_tests) Recipe.erase(get(Recipe_ordinal, "main")); - // End Loading .mu Files } transform_all(); save_snapshots(); diff --git a/057shape_shifting_container.cc b/057shape_shifting_container.cc index 06ceeea3..613aaaa7 100644 --- a/057shape_shifting_container.cc +++ b/057shape_shifting_container.cc @@ -56,7 +56,7 @@ $error: 0 :(before "End Globals") // We'll use large type ordinals to mean "the following type of the variable". const int START_TYPE_INGREDIENTS = 2000; -:(before "End Test Run Initialization") +:(before "End Commandline Parsing") // after loading .mu files assert(Next_type_ordinal < START_TYPE_INGREDIENTS); :(before "End type_info Fields") |