diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-03-13 20:14:19 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-03-13 20:14:19 -0700 |
commit | 95b2a140094697dec176167154f9b3b31c2ef70f (patch) | |
tree | 16524fc515e7046ad52577148889c575197854f0 /020run.cc | |
parent | d1b8d5eeb230a0c4ee480c0d7d36a6663c73f3fd (diff) | |
download | mu-95b2a140094697dec176167154f9b3b31c2ef70f.tar.gz |
2772 - fix all layers
Diffstat (limited to '020run.cc')
-rw-r--r-- | 020run.cc | 5 |
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) |