about summary refs log tree commit diff stats
path: root/cpp/035call
diff options
context:
space:
mode:
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 3db1a10a..9aee3db8 100644
--- a/cpp/035call
+++ b/cpp/035call
@@ -33,9 +33,9 @@ recipe f [
 // This requires maintaining a 'stack' of interrupted recipes or 'calls'.
 struct call {
   recipe_number running_recipe;
-  size_t pc;
+  size_t running_step_index;
   // End call Fields
-  call(recipe_number r) :running_recipe(r), pc(0) {}
+  call(recipe_number r) :running_recipe(r), running_step_index(0) {}
 };
 typedef stack<call> call_stack;
 
@@ -55,7 +55,7 @@ struct routine {
 
 :(replace{} "inline size_t& current_step_index()")
 inline size_t& current_step_index() {
-  return Current_routine->calls.top().pc;
+  return Current_routine->calls.top().running_step_index;
 }
 :(replace{} "inline const string& current_recipe_name()")
 inline const string& current_recipe_name() {
@@ -67,7 +67,7 @@ inline vector<instruction>& steps() {
 }
 :(replace{} "inline const instruction& current_instruction()")
 inline const instruction& current_instruction() {
-  return Recipe[Current_routine->calls.top().running_recipe].steps[Current_routine->calls.top().pc];
+  return Recipe[Current_routine->calls.top().running_recipe].steps[Current_routine->calls.top().running_step_index];
 }
 
 :(replace{} "default:" following "End Primitive Recipe Implementations")