about summary refs log tree commit diff stats
path: root/cpp/014boolean
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-13 17:57:30 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-13 17:57:30 -0700
commitf7051fadd90af17820df750d448dc35ea63690e3 (patch)
tree90e0a42805cc74938c3ebb2c4437edf81137a666 /cpp/014boolean
parent781f24623374b5657cec6e408549d2a74ec94399 (diff)
downloadmu-f7051fadd90af17820df750d448dc35ea63690e3.tar.gz
901
Diffstat (limited to 'cpp/014boolean')
-rw-r--r--cpp/014boolean3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/014boolean b/cpp/014boolean
index 61f5f436..e6dd12ba 100644
--- a/cpp/014boolean
+++ b/cpp/014boolean
@@ -3,6 +3,7 @@
 const int AND = 7;
 :(before "End Primitive Recipe Numbers")
 Recipe_number["and"] = AND;
+assert(Next_recipe_number == AND);
 Next_recipe_number++;
 :(before "End Primitive Recipe Implementations")
 case AND: {
@@ -37,6 +38,7 @@ recipe main [
 const int OR = 8;
 :(before "End Primitive Recipe Numbers")
 Recipe_number["or"] = OR;
+assert(Next_recipe_number == OR);
 Next_recipe_number++;
 :(before "End Primitive Recipe Implementations")
 case OR: {
@@ -71,6 +73,7 @@ recipe main [
 const int NOT = 9;
 :(before "End Primitive Recipe Numbers")
 Recipe_number["not"] = NOT;
+assert(Next_recipe_number == NOT);
 Next_recipe_number++;
 :(before "End Primitive Recipe Implementations")
 case NOT: {