From ef6f24a7ce99674262ee51e6cba2fcf798dd19f2 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 2 Feb 2007 15:31:32 +0000 Subject: move DEBUGF macro definition to setup_once.h --- ares/setup_once.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ares') diff --git a/ares/setup_once.h b/ares/setup_once.h index 09f086588..0ff1d65a1 100644 --- a/ares/setup_once.h +++ b/ares/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 */ -- cgit v1.2.3