about summary refs log tree commit diff stats
path: root/cpp/019array
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/019array
parent781f24623374b5657cec6e408549d2a74ec94399 (diff)
downloadmu-f7051fadd90af17820df750d448dc35ea63690e3.tar.gz
901
Diffstat (limited to 'cpp/019array')
-rw-r--r--cpp/019array2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/019array b/cpp/019array
index fe457b0a..3d797161 100644
--- a/cpp/019array
+++ b/cpp/019array
@@ -59,6 +59,7 @@ size_t size_of(reagent r) {
 const int INDEX = 20;
 :(before "End Primitive Recipe Numbers")
 Recipe_number["index"] = INDEX;
+assert(Next_recipe_number == INDEX);
 Next_recipe_number++;
 :(before "End Primitive Recipe Implementations")
 case INDEX: {
@@ -105,6 +106,7 @@ recipe main [
 const int INDEX_ADDRESS = 21;
 :(before "End Primitive Recipe Numbers")
 Recipe_number["index-address"] = INDEX_ADDRESS;
+assert(Next_recipe_number == INDEX_ADDRESS);
 Next_recipe_number++;
 :(before "End Primitive Recipe Implementations")
 case INDEX_ADDRESS: {