diff options
| author | michi <michi+ngircd@dataswamp.org> | 2023-01-01 13:12:54 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2023-01-02 22:39:16 +0100 |
| commit | c7de505c919c5f550d848f9cafae99532bc1f789 (patch) | |
| tree | 389170107d2dacb5d92b15da15b9b70d3963feff /src/portab/portab.h | |
| parent | 8e9c789ae188f8b73cc6f776a3ead21f0dfd4ca6 (diff) | |
| download | ngircd-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/portab.h')
| -rw-r--r-- | src/portab/portab.h | 2 |
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 |