This commit is contained in:
Kartik K. Agaram 2018-02-20 22:09:12 -08:00
parent c1a46edfce
commit c1bb5eca95

View File

@ -118,6 +118,9 @@ CALL_WITH_CONTINUATION_MARK,
Recipe_ordinal["call-with-continuation-mark"] = CALL_WITH_CONTINUATION_MARK;
:(before "End Primitive Recipe Checks")
case CALL_WITH_CONTINUATION_MARK: {
if (SIZE(inst.ingredients) < 2) {
raise << maybe(get(Recipe, r).name) << "'" << to_original_string(inst) << "' requires at least two ingredients: a mark number and a recipe to call\n" << end();
}
break;
}
:(before "End Primitive Recipe Implementations")