From eb055c51520313f26e36f2c21cf8a6034a503919 Mon Sep 17 00:00:00 2001 From: Bart House Date: Sat, 13 Jul 2019 09:34:58 -0700 Subject: [PATCH] Fix build break due to introduction of nhassert(). --- src/decl.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/decl.c b/src/decl.c index d24e9937a..ed16900d4 100644 --- a/src/decl.c +++ b/src/decl.c @@ -703,8 +703,16 @@ decl_globals_init() g.valuables[2].list = NULL; g.valuables[2].size = 0; - nhassert(g_init.magic == IVMAGIC); - nhassert(g_init.havestate == TRUE); + if (g_init.magic != IVMAGIC) { + printf("decl_globals_init: g_init.magic in unexpected state (%lx)\n", + g_init.magic); + exit(1); + } + + if (g_init.havestate != TRUE) { + printf("decl_globals_init: g_init..havestate not TRUE\n"); + exit(1); + } sfcap = default_sfinfo; sfrestinfo = default_sfinfo;