about summary refs log tree commit diff stats
path: root/cpp/015jump
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/015jump')
-rw-r--r--cpp/015jump3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/015jump b/cpp/015jump
index 26861166..5b4a9624 100644
--- a/cpp/015jump
+++ b/cpp/015jump
@@ -3,6 +3,7 @@
 const int JUMP = 10;
 :(before "End Primitive Recipe Numbers")
 Recipe_number["jump"] = JUMP;
+assert(Next_recipe_number == JUMP);
 Next_recipe_number++;
 :(before "End Primitive Recipe Implementations")
 case JUMP: {
@@ -35,6 +36,7 @@ recipe main [
 const int JUMP_IF = 11;
 :(before "End Primitive Recipe Numbers")
 Recipe_number["jump-if"] = JUMP_IF;
+assert(Next_recipe_number == JUMP_IF);
 Next_recipe_number++;
 :(before "End Primitive Recipe Implementations")
 case JUMP_IF: {
@@ -76,6 +78,7 @@ recipe main [
 const int JUMP_UNLESS = 12;
 :(before "End Primitive Recipe Numbers")
 Recipe_number["jump-unless"] = JUMP_UNLESS;
+assert(Next_recipe_number == JUMP_UNLESS);
 Next_recipe_number++;
 :(before "End Primitive Recipe Implementations")
 case JUMP_UNLESS: {