about summary refs log tree commit diff stats
path: root/cpp/035call
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-24 20:00:56 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-24 20:00:56 -0700
commit69e14325e3eaa3722766bb9706d7da5862b6ea26 (patch)
tree202dca5ebbdb49db1352215aac9887b5e1afa2da /cpp/035call
parentb75e94b317509b26d60223db6cf8f388890a79fb (diff)
downloadmu-69e14325e3eaa3722766bb9706d7da5862b6ea26.tar.gz
1170
Diffstat (limited to 'cpp/035call')
-rw-r--r--cpp/035call7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/035call b/cpp/035call
index 28c570dd..c7052e62 100644
--- a/cpp/035call
+++ b/cpp/035call
@@ -44,6 +44,7 @@ struct routine {
   call_stack calls;
   // End routine Fields
   routine(recipe_number r);
+  bool completed() const;
 };
 :(code)
   routine::routine(recipe_number r) {
@@ -78,9 +79,9 @@ default: {
 
 //:: finally, we need to fix the termination conditions for the run loop
 
-:(replace{} "inline bool done()")
-inline bool done() {
-  return Current_routine->calls.empty();
+:(replace{} "inline bool routine::completed() const")
+inline bool routine::completed() const {
+  return calls.empty();
 }
 
 :(before "Running One Instruction")