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 /035call_ingredient.cc | |
parent | 6808ff7d6df42aa8a8abe63041254b40b76ba8db (diff) | |
download | mu-3eeea0a22d16e0fcd43bd33725c0b54639d0ad14.tar.gz |
2294
Bah, sick of CALL and continuations.
Diffstat (limited to '035call_ingredient.cc')
-rw-r--r-- | 035call_ingredient.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/035call_ingredient.cc b/035call_ingredient.cc index a56510d6..c8f6d75a 100644 --- a/035call_ingredient.cc +++ b/035call_ingredient.cc @@ -22,13 +22,17 @@ recipe f [ :(before "End call Fields") vector<vector<double> > ingredient_atoms; +vector<type_tree*> ingredient_types; long long int next_ingredient_to_process; :(before "End call Constructor") next_ingredient_to_process = 0; -:(after "call_housekeeping:") +:(before "End Call Housekeeping") for (long long int i = 0; i < SIZE(ingredients); ++i) { Current_routine->calls.front().ingredient_atoms.push_back(ingredients.at(i)); + if (SIZE(Current_routine->calls) > 1) + Current_routine->calls.front().ingredient_types.push_back(call_instruction.ingredients.at(i).type); + // todo: else function is main and ingredient_type is string } :(before "End Primitive Recipe Declarations") |