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:23:34 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-24 20:23:34 -0700
commit8eff7919219c921c38c3921b7532b9608ece2741 (patch)
tree8856600d8eebd99fa3bf4449a4ca0cc554e85e7c /cpp/035call
parentdcfca05e08744270b3145f7906c5cd46485a4b52 (diff)
downloadmu-8eff7919219c921c38c3921b7532b9608ece2741.tar.gz
1172
Diffstat (limited to 'cpp/035call')
-rw-r--r--cpp/035call8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/035call b/cpp/035call
index 799cb739..d01b0e30 100644
--- a/cpp/035call
+++ b/cpp/035call
@@ -53,8 +53,8 @@ struct routine {
 
 //:: now update routine's helpers
 
-:(replace{} "inline size_t& running_at()")
-inline size_t& running_at() {
+:(replace{} "inline size_t& current_step_index()")
+inline size_t& current_step_index() {
   return Current_routine->calls.top().pc;
 }
 :(replace{} "inline string recipe_name()")
@@ -92,12 +92,12 @@ inline bool routine::completed() const {
 // when we reach the end of one call, we may reach the end of the one below
 // it, and the one below that, and so on
 //? trace("foo") << "0: " << pc << " " << &pc; //? 1
-while (running_at() >= steps().size()) {
+while (current_step_index() >= steps().size()) {
 //?   trace("foo") << "pop"; //? 1
   Current_routine->calls.pop();
   if (Current_routine->calls.empty()) return;
   // todo: no results returned warning
-  ++running_at();
+  ++current_step_index();
 }
 //? trace("foo") << "1: " << pc << " " << &pc; //? 1