about summary refs log tree commit diff stats
path: root/020run.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-03-13 20:14:19 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-03-13 20:14:19 -0700
commit95b2a140094697dec176167154f9b3b31c2ef70f (patch)
tree16524fc515e7046ad52577148889c575197854f0 /020run.cc
parentd1b8d5eeb230a0c4ee480c0d7d36a6663c73f3fd (diff)
downloadmu-95b2a140094697dec176167154f9b3b31c2ef70f.tar.gz
2772 - fix all layers
Diffstat (limited to '020run.cc')
-rw-r--r--020run.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/020run.cc b/020run.cc
index baf64863..aaad7576 100644
--- a/020run.cc
+++ b/020run.cc
@@ -40,6 +40,7 @@ struct routine {
   long long int running_step_index;
   routine(recipe_ordinal r) :running_recipe(r), running_step_index(0) {}
   bool completed() const;
+  const vector<instruction>& steps() const;
 };
 
 :(before "End Globals")
@@ -124,6 +125,10 @@ inline bool routine::completed() const {
   return running_step_index >= SIZE(get(Recipe, running_recipe).steps);
 }
 
+inline const vector<instruction>& routine::steps() const {
+  return get(Recipe, running_recipe).steps;
+}
+
 //:: Startup flow
 
 //: Step 1: load all .mu files with numeric prefixes (in order)