move DEBUGF macro definition to setup_once.h

This commit is contained in:
Yang Tse 2007-02-02 15:31:32 +00:00
parent abe90019d3
commit ef6f24a7ce
3 changed files with 22 additions and 6 deletions

View file

@ -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 */