This commit is contained in:
Kartik K. Agaram 2015-10-04 21:29:58 -07:00
parent 926e1b049b
commit 513bfed876
1 changed files with 5 additions and 1 deletions

View File

@ -85,7 +85,11 @@ if (Recipe.find(inst.operation) == Recipe.end()) {
}
:(replace{} "default:" following "End Primitive Recipe Implementations")
default: {
if (Recipe.find(current_instruction().operation) == Recipe.end()) break; // duplicate from Checks
if (Recipe.find(current_instruction().operation) == Recipe.end()) { // duplicate from Checks
// stop running this instruction immediately
++current_step_index();
continue;
}
// not a primitive; look up the book of recipes
Current_routine->calls.push_front(call(current_instruction().operation));
call_housekeeping: