about summary refs log tree commit diff stats
path: root/054static_dispatch.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-05-28 23:42:54 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-05-28 23:57:19 -0700
commitb2f699e14f02ba503c7a70afc3e9b749ac61f3d7 (patch)
tree1c584a99e16e4159ab694aefcd3c0210cd653183 /054static_dispatch.cc
parent5987486862b8c989452bc62d359168a5686b462e (diff)
downloadmu-b2f699e14f02ba503c7a70afc3e9b749ac61f3d7.tar.gz
3888 - beginnings of a profiler
Time to make my ad hoc commented out code fragments a first-class feature.
Diffstat (limited to '054static_dispatch.cc')
-rw-r--r--054static_dispatch.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/054static_dispatch.cc b/054static_dispatch.cc
index e73ab3f5..450d887f 100644
--- a/054static_dispatch.cc
+++ b/054static_dispatch.cc
@@ -566,10 +566,11 @@ def foo x:num -> y:num [
 # number variant is preferred
 +mem: storing 35 in location 1
 
-:(code)
+:(replace{} "string header_label(const recipe_ordinal r)")
 string header_label(const recipe_ordinal r) {
   return header_label(get(Recipe, r));
 }
+:(code)
 string header_label(const recipe& caller) {
   ostringstream out;
   out << "recipe " << caller.name;