From 7c8493b3fba57b31708ba53875805f5b045d92e4 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 24 Apr 2015 20:25:33 -0700 Subject: 1173 --- cpp/035call | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/035call') diff --git a/cpp/035call b/cpp/035call index d01b0e30..912240ce 100644 --- a/cpp/035call +++ b/cpp/035call @@ -57,8 +57,8 @@ struct routine { inline size_t& current_step_index() { return Current_routine->calls.top().pc; } -:(replace{} "inline string recipe_name()") -inline string recipe_name() { +:(replace{} "inline const string& current_recipe_name()") +inline const string& current_recipe_name() { return Recipe[Current_routine->calls.top().running_recipe].name; } :(replace{} "inline vector& steps()") -- cgit 1.4.1-2-gfad0 '> Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
blob: bc747e14971c70e8853281d5eee56c782260c380 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27