about summary refs log tree commit diff stats
path: root/072scheduler.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-08-27 18:05:11 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-08-27 18:05:11 -0700
commit77017b6dc856884e5d90640c0af2916b70c72bec (patch)
tree86cd4a7477afc8dbb9f88ea4729905ee0ed0d1af /072scheduler.cc
parente0ec7106082fbfb2c3ae30ee223257a2eb80284a (diff)
downloadmu-77017b6dc856884e5d90640c0af2916b70c72bec.tar.gz
3262
Diffstat (limited to '072scheduler.cc')
-rw-r--r--072scheduler.cc6
1 files changed, 5 insertions, 1 deletions
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;