about summary refs log tree commit diff stats
path: root/026call.cc
diff options
context:
space:
mode:
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());