From d3902ff0be0de6ea0cf523a42605b80715e33f38 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 27 Mar 2016 22:17:03 -0700 Subject: 2816 Move all bounds checks for types and recipes to one place. --- 010vm.cc | 2 +- 020run.cc | 1 - 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") -- cgit 1.4.1-2-gfad0 /a>
path: root/themes/orange
blob: 729ea5d46ed877b7992a1bd5929fda21cfd6bad9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77