From c7de505c919c5f550d848f9cafae99532bc1f789 Mon Sep 17 00:00:00 2001 From: michi Date: Sun, 1 Jan 2023 13:12:54 +0100 Subject: Make the debug loglevel always available This basically means to unifdef DEBUG in (almost) all places. We keep it in src/portab/portab.h so DEBUG stays available to enable assert(). Also add a comment about this. --- src/portab/portab.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/portab') diff --git a/src/portab/portab.h b/src/portab/portab.h index 43f2f907..ebe81b49 100644 --- a/src/portab/portab.h +++ b/src/portab/portab.h @@ -19,6 +19,8 @@ #include "config.h" +/* remove assert() macro at compile time if DEBUG is not set. */ + #ifndef DEBUG # define NDEBUG #endif -- cgit 1.4.1