diff options
Diffstat (limited to 'cpp/035call')
-rw-r--r-- | cpp/035call | 7 |
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") |