projects
/
platform
/
upstream
/
c-ares.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1451171
)
move DEBUGF macro definition to setup_once.h
author
Yang Tse
<yangsita@gmail.com>
Fri, 2 Feb 2007 15:31:32 +0000
(15:31 +0000)
committer
Yang Tse
<yangsita@gmail.com>
Fri, 2 Feb 2007 15:31:32 +0000
(15:31 +0000)
setup_once.h
patch
|
blob
|
history
diff --git
a/setup_once.h
b/setup_once.h
index 09f086588127580fbb9c13ed1d4f6b7772f0e8d6..0ff1d65a17dedeb5ef70293217235b8206ea864f 100644
(file)
--- 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 */