about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--020run.cc5
-rw-r--r--034call.cc1
2 files changed, 6 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)
diff --git a/034call.cc b/034call.cc
index 0cf24966..111c88df 100644
--- a/034call.cc
+++ b/034call.cc
@@ -144,6 +144,7 @@ inline bool routine::completed() const {
   return calls.empty();
 }
 
+:(replace{} "inline const vector<instruction>& routine::steps() const")
 inline const vector<instruction>& routine::steps() const {
   assert(!calls.empty());
   return get(Recipe, calls.front().running_recipe).steps;