about summary refs log tree commit diff stats
path: root/cpp/072scenario_screen.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-04 14:57:53 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-04 14:57:53 -0700
commitdff30c7824175aa64f753bbc6b87f7788fcebbbf (patch)
treeac14cb6b6137eb67b19dc7f42630ba81acf35865 /cpp/072scenario_screen.cc
parente3092e7b5ca7fc8c87c891d4d6a1a53ea413072f (diff)
downloadmu-dff30c7824175aa64f753bbc6b87f7788fcebbbf.tar.gz
1257
Diffstat (limited to 'cpp/072scenario_screen.cc')
-rw-r--r--cpp/072scenario_screen.cc5
1 files changed, 5 insertions, 0 deletions
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.