diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-04-24 20:00:56 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-04-24 20:00:56 -0700 |
commit | 69e14325e3eaa3722766bb9706d7da5862b6ea26 (patch) | |
tree | 202dca5ebbdb49db1352215aac9887b5e1afa2da /cpp/035call | |
parent | b75e94b317509b26d60223db6cf8f388890a79fb (diff) | |
download | mu-69e14325e3eaa3722766bb9706d7da5862b6ea26.tar.gz |
1170
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") |