summaryrefslogtreecommitdiff
path: root/setup_once.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-02-02 15:31:32 (GMT)
committerYang Tse <yangsita@gmail.com>2007-02-02 15:31:32 (GMT)
commite184411c0b468e09c8c15996d1e0ef6d88effd8a (patch)
tree96a214158950651c4cd7b382a9ea59e8b96a4313 /setup_once.h
parent145117174e94b04b4e74b5d86aec37584b3daaef (diff)
downloadc-ares-e184411c0b468e09c8c15996d1e0ef6d88effd8a.zip
c-ares-e184411c0b468e09c8c15996d1e0ef6d88effd8a.tar.gz
c-ares-e184411c0b468e09c8c15996d1e0ef6d88effd8a.tar.bz2
move DEBUGF macro definition to setup_once.h
Diffstat (limited to 'setup_once.h')
-rw-r--r--setup_once.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/setup_once.h b/setup_once.h
index 09f0865..0ff1d65 100644
--- a/setup_once.h
+++ b/setup_once.h
@@ -142,5 +142,16 @@ typedef int sig_atomic_t;
#endif
+/*
+ * Macro used to include code only in debug builds.
+ */
+
+#ifdef CURLDEBUG
+#define DEBUGF(X) X
+#else
+#define DEBUGF(X) do { } while (0)
+#endif
+
+
#endif /* __SETUP_ONCE_H */