about summary refs log tree commit diff stats
path: root/cpp/020run
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-24 20:25:33 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-24 20:25:33 -0700
commit7c8493b3fba57b31708ba53875805f5b045d92e4 (patch)
tree810c036861d5ba9b09115a00cb7d95b33a3d9f0d /cpp/020run
parent8eff7919219c921c38c3921b7532b9608ece2741 (diff)
downloadmu-7c8493b3fba57b31708ba53875805f5b045d92e4.tar.gz
1173
Diffstat (limited to 'cpp/020run')
-rw-r--r--cpp/020run4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/020run b/cpp/020run
index cafeef75..93052b52 100644
--- a/cpp/020run
+++ b/cpp/020run
@@ -57,7 +57,7 @@ void run_current_routine()
     if (current_instruction().is_label) { ++pc; continue; }
 //?     cout << "AAA " << Trace_stream << " ^" << Trace_stream->dump_layer << "$\n"; //? 1
 //?     trace("foo") << "2.5: " << pc << " " << &pc; //? 1
-    trace("run") << "instruction " << recipe_name() << '/' << pc;
+    trace("run") << "instruction " << current_recipe_name() << '/' << pc;
 //?     cout << "operation " << current_instruction().operation << '\n'; //? 3
 //?     if (!current_instruction().products.empty()) trace("foo") << "AAA product 0 is " << current_instruction().products[0].to_string(); //? 1
     switch (current_instruction().operation) {
@@ -87,7 +87,7 @@ inline size_t& current_step_index() {
   return Current_routine->running_step_index;
 }
 
-inline string recipe_name() {
+inline const string& current_recipe_name() {
   return Recipe[Current_routine->running_recipe].name;
 }