move DEBUGF macro definition to setup_once.h
authorYang Tse <yangsita@gmail.com>
Fri, 2 Feb 2007 15:31:32 +0000 (15:31 +0000)
committerYang Tse <yangsita@gmail.com>
Fri, 2 Feb 2007 15:31:32 +0000 (15:31 +0000)
setup_once.h

index 09f086588127580fbb9c13ed1d4f6b7772f0e8d6..0ff1d65a17dedeb5ef70293217235b8206ea864f 100644 (file)
@@ -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 */