From 82c04e61516756a65587eaceb1a6df41082573a9 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 4 May 2015 13:09:38 -0700 Subject: 1254 --- cpp/999spaces.cc | 5 ++++- cpp/makefile | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cpp/999spaces.cc b/cpp/999spaces.cc index 5da0d63b..6f348073 100644 --- a/cpp/999spaces.cc +++ b/cpp/999spaces.cc @@ -9,8 +9,11 @@ //: Location 0 - unused (since it can help uncover bugs) //: Locations 1-899 - reserved for tests //: Locations 900-999 - reserved for predefined globals in mu scenarios, like keyboard, screen, etc. +:(before "End Setup") +assert(Max_variables_in_scenarios == 900); //: Locations 1000 ('Reserved_for_tests') onward - available to the allocator in chunks of size Initial_memory_per_routine. -//: +assert(Reserved_for_tests == 1000); + //:: Recipes //: //: 0 - unused (IDLE; do nothing) diff --git a/cpp/makefile b/cpp/makefile index ade746fd..9ef7c92c 100644 --- a/cpp/makefile +++ b/cpp/makefile @@ -5,8 +5,8 @@ mu: makefile enumerate/enumerate tangle/tangle mu.cc termbox/libtermbox.a # To see what the program looks like after all layers have been applied, read # mu.cc mu.cc: 0* - ./tangle/tangle $$(./enumerate/enumerate --until 999 |grep -v '.mu$$') > mu.cc - cat $$(./enumerate/enumerate --until 999 |grep '.mu$$') > core.mu + ./tangle/tangle $$(./enumerate/enumerate --until 9999 |grep -v '.mu$$') > mu.cc + cat $$(./enumerate/enumerate --until 9999 |grep '.mu$$') > core.mu enumerate/enumerate: cd enumerate && make && ./enumerate test -- cgit 1.4.1-2-gfad0