about summary refs log tree commit diff stats
path: root/cpp/049scenario_helpers.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/049scenario_helpers.cc')
-rw-r--r--cpp/049scenario_helpers.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/049scenario_helpers.cc b/cpp/049scenario_helpers.cc
index d1d71c99..fa584565 100644
--- a/cpp/049scenario_helpers.cc
+++ b/cpp/049scenario_helpers.cc
@@ -12,6 +12,15 @@ recipe main [
 ]
 +mem: storing 13 in location 1
 
+:(scenario run_handles_comments)
+recipe main [
+  run [
+    # comment
+    1:integer <- copy 13:literal
+  ]
+]
++mem: storing 13 in location 1
+
 :(before "End Globals")
 size_t Num_temporary_recipes = 0;
 :(before "End Setup")
@@ -26,6 +35,7 @@ case RUN: {
 //?   cout << "recipe " << current_instruction().ingredients[0].name << '\n'; //? 1
   ostringstream tmp;
   tmp << "recipe tmp" << Num_temporary_recipes++ << " [ " << current_instruction().ingredients[0].name << " ]";
+//?   Show_rest_of_stream = true; //? 1
   vector<recipe_number> tmp_recipe = load(tmp.str());
   transform_all();
 //?   cout << tmp_recipe[0] << ' ' << Recipe_number["main"] << '\n'; //? 1