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 19:23:01 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-14 19:23:01 -0700
commit10e449b50139123b09217f81d4a11effe9efaa9e (patch)
treeb33bb7372c9cd434df445a56d49248fc872863b0 /cpp/012run
parentcc8f359b2dcc6200f450ba2c9993e816f772010c (diff)
downloadmu-10e449b50139123b09217f81d4a11effe9efaa9e.tar.gz
915
Diffstat (limited to 'cpp/012run')
-rw-r--r--cpp/012run5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/012run b/cpp/012run
index 4fdb7ebb..1e38c15a 100644
--- a/cpp/012run
+++ b/cpp/012run
@@ -41,7 +41,10 @@ struct routine {
 
 :(code)
 void run(string form) {
-  recipe_number r = add_recipes(form);
+  run(add_recipes(form));
+}
+
+void run(recipe_number r) {
   routine rr;
   rr.calls.push(call(r));
   run(rr);