From 909adb27f9df2ba58e703562e3cf8f948fc58b56 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 10 Jun 2017 14:36:38 -0700 Subject: 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. --- 034address.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '034address.cc') 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 -- cgit 1.4.1-2-gfad0