diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-08-27 18:05:11 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-08-27 18:05:11 -0700 |
commit | 77017b6dc856884e5d90640c0af2916b70c72bec (patch) | |
tree | 86cd4a7477afc8dbb9f88ea4729905ee0ed0d1af /072scheduler.cc | |
parent | e0ec7106082fbfb2c3ae30ee223257a2eb80284a (diff) | |
download | mu-77017b6dc856884e5d90640c0af2916b70c72bec.tar.gz |
3262
Diffstat (limited to '072scheduler.cc')
-rw-r--r-- | 072scheduler.cc | 6 |
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; |