summary refs log tree commit diff
path: root/src/portab
diff options
context:
space:
mode:
authormichi <michi+ngircd@dataswamp.org>2023-01-01 13:12:54 +0100
committerAlexander Barton <alex@barton.de>2023-01-02 22:39:16 +0100
commitc7de505c919c5f550d848f9cafae99532bc1f789 (patch)
tree389170107d2dacb5d92b15da15b9b70d3963feff /src/portab
parent8e9c789ae188f8b73cc6f776a3ead21f0dfd4ca6 (diff)
downloadngircd-c7de505c919c5f550d848f9cafae99532bc1f789.tar.gz
ngircd-c7de505c919c5f550d848f9cafae99532bc1f789.zip
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.
Diffstat (limited to 'src/portab')
-rw-r--r--src/portab/portab.h2
1 files changed, 2 insertions, 0 deletions
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