about summary refs log tree commit diff stats
path: root/034address.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-06-10 14:36:38 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-06-10 15:41:42 -0700
commit909adb27f9df2ba58e703562e3cf8f948fc58b56 (patch)
treed85bf7767b9d38479e66de96a4fddebd27e98ef7 /034address.cc
parentf0f077661c1f5d587602343a1a0bc82f0c99cf59 (diff)
downloadmu-909adb27f9df2ba58e703562e3cf8f948fc58b56.tar.gz
3905
Standardize exit paths. Most layers now don't need to know about termbox.

We can't really use `assert` in console-mode apps; it can't just exit because
we want to be able to check assertion failures in tests.
Diffstat (limited to '034address.cc')
-rw-r--r--034address.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/034address.cc b/034address.cc
index 65b97dc0..4b955050 100644
--- a/034address.cc
+++ b/034address.cc
@@ -367,9 +367,8 @@ int allocate(int size) {
 :(code)
 void ensure_space(int size) {
   if (size > Initial_memory_per_routine) {
-    tb_shutdown();
     cerr << "can't allocate " << size << " locations, that's too much compared to " << Initial_memory_per_routine << ".\n";
-    exit(0);
+    exit(1);
   }
   if (Current_routine->alloc + size > Current_routine->alloc_max) {
     // waste the remaining space and create a new chunk