about summary refs log tree commit diff stats
path: root/cpp/017record
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/017record
parent781f24623374b5657cec6e408549d2a74ec94399 (diff)
downloadmu-f7051fadd90af17820df750d448dc35ea63690e3.tar.gz
901
Diffstat (limited to 'cpp/017record')
-rw-r--r--cpp/017record2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/017record b/cpp/017record
index 6ce9da1d..d64fdcb6 100644
--- a/cpp/017record
+++ b/cpp/017record
@@ -28,6 +28,7 @@ recipe main [
 const int GET = 18;
 :(before "End Primitive Recipe Numbers")
 Recipe_number["get"] = GET;
+assert(Next_recipe_number == GET);
 Next_recipe_number++;
 :(before "End Primitive Recipe Implementations")
 case GET: {
@@ -104,6 +105,7 @@ recipe main [
 const int GET_ADDRESS = 19;
 :(before "End Primitive Recipe Numbers")
 Recipe_number["get-address"] = GET_ADDRESS;
+assert(Next_recipe_number == GET_ADDRESS);
 Next_recipe_number++;
 :(before "End Primitive Recipe Implementations")
 case GET_ADDRESS: {