add init.c, force BUG_ON in safe_malloc()

This commit is contained in:
2024-05-14 11:39:37 +02:00
parent a0b1d289a7
commit 7baf66f1b6
4 changed files with 58 additions and 2 deletions

View File

@@ -56,7 +56,6 @@ CPPFILES := $(SRC:.c=.i) $(TSTSRC:.c=.i)
CPPFLAGS := -I$(BRINCDIR) -I$(INCDIR)
CPPFLAGS += -DNDEBUG # assert
CPPFLAGS += -DBUG_ON # brlib bug.h
CPPFLAGS += -DWARN_ON # brlib bug.h
#CPPFLAGS += -DDEBUG # global - unused
@@ -79,6 +78,9 @@ CPPFLAGS += -DWARN_ON # brlib bug.h
CPPFLAGS += -DDIAGRAM_SYM # UTF8 symbols in diagrams
# Never comment this one !
CPPFLAGS += -DBUG_ON # brlib bug.h
# remove extraneous spaces (due to spaces before comments)
CPPFLAGS := $(strip $(CPPFLAGS))