diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-10-28 05:40:27 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-10-28 05:40:27 -0700 |
commit | 3eeea0a22d16e0fcd43bd33725c0b54639d0ad14 (patch) | |
tree | 79d7b11bbd47d3a8c2e5d32d2f5b5ccf1310d0f9 /034call.cc | |
parent | 6808ff7d6df42aa8a8abe63041254b40b76ba8db (diff) | |
download | mu-3eeea0a22d16e0fcd43bd33725c0b54639d0ad14.tar.gz |
2294
Bah, sick of CALL and continuations.
Diffstat (limited to '034call.cc')
-rw-r--r-- | 034call.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/034call.cc b/034call.cc index 11dc326e..b799b594 100644 --- a/034call.cc +++ b/034call.cc @@ -90,6 +90,7 @@ if (Recipe.find(inst.operation) == Recipe.end()) { } :(replace{} "default:" following "End Primitive Recipe Implementations") default: { + const instruction& call_instruction = current_instruction(); if (Recipe.find(current_instruction().operation) == Recipe.end()) { // duplicate from Checks // stop running this instruction immediately ++current_step_index(); @@ -102,9 +103,13 @@ default: { assert(Trace_stream->callstack_depth < 9000); // 9998-101 plus cushion } Current_routine->calls.push_front(call(current_instruction().operation)); - call_housekeeping: + finish_call_housekeeping(call_instruction, ingredients); continue; // not done with caller; don't increment current_step_index() } +:(code) +void finish_call_housekeeping(const instruction& call_instruction, const vector<vector<double> >& ingredients) { + // End Call Housekeeping +} :(scenario calling_undefined_recipe_fails) % Hide_errors = true; |