diff options
Diffstat (limited to '054static_dispatch.cc')
-rw-r--r-- | 054static_dispatch.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/054static_dispatch.cc b/054static_dispatch.cc index 00503c85..fa0c6c74 100644 --- a/054static_dispatch.cc +++ b/054static_dispatch.cc @@ -564,7 +564,9 @@ def foo x:number -> y:number [ :(code) string header_label(recipe_ordinal r) { - const recipe& caller = get(Recipe, r); + return header_label(get(Recipe, r)); +} +string header_label(const recipe& caller) { ostringstream out; out << "recipe " << caller.name; for (int i = 0; i < SIZE(caller.ingredients); ++i) |