diff options
-rw-r--r-- | cpp/999spaces.cc | 5 | ||||
-rw-r--r-- | 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 |