about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--cpp/050scenario.cc4
-rw-r--r--cpp/072scenario_screen.cc5
2 files changed, 5 insertions, 4 deletions
diff --git a/cpp/050scenario.cc b/cpp/050scenario.cc
index 0688e7b5..ae4769f5 100644
--- a/cpp/050scenario.cc
+++ b/cpp/050scenario.cc
@@ -138,10 +138,6 @@ case RUN: {
   // Predefined Scenario Locals In Run.
   // End Predefined Scenario Locals In Run.
   transform_all();
-  // There's a restriction on the number of variables 'run' can use, so that
-  // it can avoid colliding with the dynamic allocator in case it doesn't
-  // initialize a default-space.
-  assert(Name[tmp_recipe[0]][""] < Max_variables_in_scenarios);
 //?   cout << tmp_recipe[0] << ' ' << Recipe_number["main"] << '\n'; //? 1
   Current_routine->calls.push(call(tmp_recipe[0]));
   continue;  // not done with caller; don't increment current_step_index()
diff --git a/cpp/072scenario_screen.cc b/cpp/072scenario_screen.cc
index 4bc42940..43266e78 100644
--- a/cpp/072scenario_screen.cc
+++ b/cpp/072scenario_screen.cc
@@ -45,6 +45,11 @@ const size_t Max_variables_in_scenarios = Reserved_for_tests-100;
 size_t Next_predefined_global_for_scenarios = Max_variables_in_scenarios;
 :(before "End Setup")
 assert(Next_predefined_global_for_scenarios < Reserved_for_tests);
+:(after "transform_all()" following "case RUN:")
+// There's a restriction on the number of variables 'run' can use, so that
+// it can avoid colliding with the dynamic allocator in case it doesn't
+// initialize a default-space.
+assert(Name[tmp_recipe[0]][""] < Max_variables_in_scenarios);
 
 :(before "End Globals")
 // Scenario Globals.
9f528f2ca844ba66383bb2eb6cb5c2994d3'>^
74fdd5c2e ^


f1aa0a745 ^



74fdd5c2e ^
f1aa0a745 ^


8c671d22d ^
f1aa0a745 ^
74fdd5c2e ^






f1aa0a745 ^


c894f6fd2 ^

f1aa0a745 ^




74fdd5c2e ^




fd7b7a0bc ^
74fdd5c2e ^
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