about summary refs log tree commit diff stats
path: root/cpp/012run
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-14 22:33:42 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-14 22:33:42 -0700
commit0cc8fa9af894f1d8594173f3083acf5acfbebf3a (patch)
tree049453af51cb6ee4d1044b353e077ca470ec8afe /cpp/012run
parent15433557812c1b8153fe3f238311ff808c8389b6 (diff)
downloadmu-0cc8fa9af894f1d8594173f3083acf5acfbebf3a.tar.gz
924
Diffstat (limited to 'cpp/012run')
-rw-r--r--cpp/012run3
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")