about summary refs log tree commit diff stats
path: root/026call.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-09-15 11:22:14 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-09-15 11:22:36 -0700
commit58a08ed3e70a8edadcbcc760b25f76288e2f9645 (patch)
tree198d7c7f98a675ee94cab593f87433bcbc13d40b /026call.cc
parent02796d320d98cc30f5f074d822535f878dba34e5 (diff)
downloadmu-58a08ed3e70a8edadcbcc760b25f76288e2f9645.tar.gz
3358
Diffstat (limited to '026call.cc')
-rw-r--r--026call.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/026call.cc b/026call.cc
index 8a781892..afe0bc19 100644
--- a/026call.cc
+++ b/026call.cc
@@ -84,6 +84,11 @@ const string& current_recipe_name() {
   assert(!Current_routine->calls.empty());
   return get(Recipe, current_call().running_recipe).name;
 }
+:(replace{} "const recipe& current_recipe()")
+const recipe& current_recipe() {
+  assert(!Current_routine->calls.empty());
+  return get(Recipe, current_call().running_recipe);
+}
 :(replace{} "const instruction& current_instruction()")
 const instruction& current_instruction() {
   assert(!Current_routine->calls.empty());