diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-03-14 22:33:42 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-03-14 22:33:42 -0700 |
commit | 0cc8fa9af894f1d8594173f3083acf5acfbebf3a (patch) | |
tree | 049453af51cb6ee4d1044b353e077ca470ec8afe /cpp/012run | |
parent | 15433557812c1b8153fe3f238311ff808c8389b6 (diff) | |
download | mu-0cc8fa9af894f1d8594173f3083acf5acfbebf3a.tar.gz |
924
Diffstat (limited to 'cpp/012run')
-rw-r--r-- | cpp/012run | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/012run b/cpp/012run index 0d102660..eec9b61c 100644 --- a/cpp/012run +++ b/cpp/012run @@ -51,8 +51,8 @@ void run(recipe_number r) { void run(routine rr) { // #defines save us the trouble of updating aliases when dependent variables // change. -#define instructions Recipe[rr.calls.top().running_recipe].steps while (!rr.calls.empty()) { + vector<instruction>& instructions = Recipe[rr.calls.top().running_recipe].steps; while (rr.calls.top().pc >= instructions.size()) { rr.calls.pop(); if (rr.calls.empty()) return; @@ -76,7 +76,6 @@ void run(routine rr) { } ++pc; } -#undef instructions } :(before "End Main") |