diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-03-27 10:51:27 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-03-27 10:51:27 -0700 |
commit | e2240eb4e89721928fef4e694524e350fb0140cb (patch) | |
tree | d5ede45295705c9e50e72e46436dfec6e16017e1 /cpp/021call | |
parent | 67bd9b1ba1f84c9a6d73378daf764355a09f3c4f (diff) | |
download | mu-e2240eb4e89721928fef4e694524e350fb0140cb.tar.gz |
987 - c++: memory allocator
Diffstat (limited to 'cpp/021call')
-rw-r--r-- | cpp/021call | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/021call b/cpp/021call index ad7c3ee3..79f86183 100644 --- a/cpp/021call +++ b/cpp/021call @@ -23,10 +23,13 @@ typedef stack<call> call_stack; :(replace{} "struct routine") struct routine { call_stack calls; - routine(recipe_number r) { + // End Routine Fields + routine(recipe_number r); +}; +:(code) + routine::routine(recipe_number r) { calls.push(call(r)); } -}; //: now update routine's helpers :(replace{} "inline size_t& running_at(routine& rr)") inline size_t& running_at(routine& rr) { |