From 69e14325e3eaa3722766bb9706d7da5862b6ea26 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 24 Apr 2015 20:00:56 -0700 Subject: 1170 --- cpp/035call | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cpp/035call') 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") -- cgit 1.4.1-2-gfad0