From 77017b6dc856884e5d90640c0af2916b70c72bec Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 27 Aug 2016 18:05:11 -0700 Subject: 3262 --- 072scheduler.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '072scheduler.cc') diff --git a/072scheduler.cc b/072scheduler.cc index 7a63651b..48b19635 100644 --- a/072scheduler.cc +++ b/072scheduler.cc @@ -93,8 +93,12 @@ void skip_to_next_routine() { } string current_routine_label() { + return routine_label(Current_routine); +} + +string routine_label(routine* r) { ostringstream result; - const call_stack& calls = Current_routine->calls; + const call_stack& calls = r->calls; for (call_stack::const_iterator p = calls.begin(); p != calls.end(); ++p) { if (p != calls.begin()) result << '/'; result << get(Recipe, p->running_recipe).name; -- cgit 1.4.1-2-gfad0