From 68c6adf3e1cf16317207abc664b836b648f2b4a6 Mon Sep 17 00:00:00 2001 From: "C. Guy Yarvin" Date: Mon, 25 Sep 2017 18:18:35 -0700 Subject: [PATCH] Retrofit. --- Makefile | 2 +- noun/manage.c | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index a4b0eb111..021c10fa0 100644 --- a/Makefile +++ b/Makefile @@ -91,7 +91,7 @@ endif INCLUDE=include MDEFINES=-DU3_OS_$(OS) -DU3_OS_ENDIAN_$(ENDIAN) -DEBUG=no +DEBUG=yes ifeq ($(DEBUG),yes) CFLAGS=-g diff --git a/noun/manage.c b/noun/manage.c index 353940b7f..1e37a09e9 100644 --- a/noun/manage.c +++ b/noun/manage.c @@ -613,11 +613,13 @@ u3m_bail(u3_noun how) } switch ( how ) { -#if 1 case c3__fail: - case c3__meme: -#endif + case c3__meme: { + fprintf(stderr, "bailing out\r\n"); + abort(); + } case c3__exit: { + static c3_w xuc_w = 0; { @@ -629,7 +631,8 @@ u3m_bail(u3_noun how) } case c3__foul: case c3__oops: - abort(); + fprintf(stderr, "bailing out\r\n"); + assert(0); } if ( &(u3H->rod_u) == u3R ) {