summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2024-04-22 06:51:58 (GMT)
committerThomas Haller <thaller@redhat.com>2024-04-22 08:30:03 (GMT)
commite592dd89f1d6a6613b2ca37434ad568da0998b19 (patch)
treed8cce3d8771f1ea644bef3c6abf7fd4b097c31e8 /include
parent5873497482022167393f3e193d187340df4acf99 (diff)
downloadlibnl-e592dd89f1d6a6613b2ca37434ad568da0998b19.zip
libnl-e592dd89f1d6a6613b2ca37434ad568da0998b19.tar.gz
libnl-e592dd89f1d6a6613b2ca37434ad568da0998b19.tar.bz2
build: always define NL_DEBUG
Checking conditional defines with #ifdef is error prone because we don't get a compiler warning when the define wrongly is missing. Instead, always define it to either 0 or 1. The benefit is also that now we can use NL_DEBUG in C (not only in the preprocessor).
Diffstat (limited to 'include')
-rw-r--r--include/nl-aux-core/nl-core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/nl-aux-core/nl-core.h b/include/nl-aux-core/nl-core.h
index 5b34bcb..c6bdbeb 100644
--- a/include/nl-aux-core/nl-core.h
+++ b/include/nl-aux-core/nl-core.h
@@ -5,7 +5,7 @@
#include "base/nl-base-utils.h"
-#ifdef NL_DEBUG
+#if NL_DEBUG
#define NL_DBG(LVL, FMT, ARG...) \
do { \
if (LVL <= nl_debug) { \