aboutsummaryrefslogtreecommitdiff
path: root/lib/setup_once.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-02-02 15:31:32 +0000
committerYang Tse <yangsita@gmail.com>2007-02-02 15:31:32 +0000
commitef6f24a7ce99674262ee51e6cba2fcf798dd19f2 (patch)
tree1c690c5c19fd4967ed0d27c3352091e349aafafc /lib/setup_once.h
parentabe90019d33362264b84dd56a73f25216e757e04 (diff)
move DEBUGF macro definition to setup_once.h
Diffstat (limited to 'lib/setup_once.h')
-rw-r--r--lib/setup_once.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/setup_once.h b/lib/setup_once.h
index ee6864158..3d3235ede 100644
--- a/lib/setup_once.h
+++ b/lib/setup_once.h
@@ -149,5 +149,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 */