about summary refs log tree commit diff stats
path: root/cpp/015boolean
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/015boolean')
-rw-r--r--cpp/015boolean18
1 files changed, 6 insertions, 12 deletions
diff --git a/cpp/015boolean b/cpp/015boolean
index 2b85d9a4..6c677f7e 100644
--- a/cpp/015boolean
+++ b/cpp/015boolean
@@ -1,10 +1,8 @@
-:(before "End Globals")
+:(before "End Primitive Recipe Declarations")
 // Boolean ops.
-const int AND = 7;
+AND,
 :(before "End Primitive Recipe Numbers")
 Recipe_number["and"] = AND;
-assert(Next_recipe_number == AND);
-Next_recipe_number++;
 :(before "End Primitive Recipe Implementations")
 case AND: {
   trace("run") << "ingredient 0 is " << instructions[pc].ingredients[0].name;
@@ -34,12 +32,10 @@ recipe main [
 +run: product 0 is 0
 +mem: storing 0 in location 3
 
-:(before "End Globals")
-const int OR = 8;
+:(before "End Primitive Recipe Declarations")
+OR,
 :(before "End Primitive Recipe Numbers")
 Recipe_number["or"] = OR;
-assert(Next_recipe_number == OR);
-Next_recipe_number++;
 :(before "End Primitive Recipe Implementations")
 case OR: {
   trace("run") << "ingredient 0 is " << instructions[pc].ingredients[0].name;
@@ -69,12 +65,10 @@ recipe main [
 +run: product 0 is 1
 +mem: storing 1 in location 3
 
-:(before "End Globals")
-const int NOT = 9;
+:(before "End Primitive Recipe Declarations")
+NOT,
 :(before "End Primitive Recipe Numbers")
 Recipe_number["not"] = NOT;
-assert(Next_recipe_number == NOT);
-Next_recipe_number++;
 :(before "End Primitive Recipe Implementations")
 case NOT: {
   trace("run") << "ingredient 0 is " << instructions[pc].ingredients[0].name;