about summary refs log tree commit diff stats
path: root/cpp/032new
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-17 10:31:17 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-17 10:31:17 -0700
commit1848b18f02b158861008214efd19708585bfcbe5 (patch)
tree3b5ddc0355f9b2b099156a668761cf45edefefb1 /cpp/032new
parent9da1b126cc017e14035b94c4615d211e5bc4bb21 (diff)
downloadmu-1848b18f02b158861008214efd19708585bfcbe5.tar.gz
1073 - stop fixing the values of primitive recipes
In the process I give up trace stability when I move files around, but I
gain in exchange the ability to move files around.
Diffstat (limited to 'cpp/032new')
-rw-r--r--cpp/032new7
1 files changed, 2 insertions, 5 deletions
diff --git a/cpp/032new b/cpp/032new
index e75d4148..e0460170 100644
--- a/cpp/032new
+++ b/cpp/032new
@@ -35,13 +35,10 @@ if (inst.operation == Recipe_number["new"]) {
   trace("new") << inst.ingredients[0].name << " -> " << inst.ingredients[0].value;
 }
 
-:(before "End Globals")
-// Operator to look at elements of arrays.
-const int NEW = 30;
+:(before "End Primitive Recipe Declarations")
+NEW,
 :(before "End Primitive Recipe Numbers")
 Recipe_number["new"] = NEW;
-assert(Next_recipe_number == NEW);
-Next_recipe_number++;
 :(before "End Primitive Recipe Implementations")
 case NEW: {
   vector<int> result;