From 9d1c80944d1ab3f13fab86d50d2a0776ab0cdbd7 Mon Sep 17 00:00:00 2001
From: hniksic <devnull@localhost>
Date: Sun, 26 Jun 2005 14:48:39 -0700
Subject: [PATCH] [svn] Better document DEBUGP.

---
 src/wget.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/wget.h b/src/wget.h
index 21fa8810..d598cccb 100644
--- a/src/wget.h
+++ b/src/wget.h
@@ -107,7 +107,12 @@ so, delete this exception statement from your version.  */
 # define IF_DEBUG if (0)
 #endif
 
-#define DEBUGP(x) do { IF_DEBUG { debug_logprintf x; } } while (0)
+/* Print ARGS if debugging is enabled and requested, otherwise do
+   nothing.  This must be called with an extra level of parentheses
+   because it's not possible to pass a variable number of arguments to
+   a macro (in portable C89).  ARGS are like arguments to printf.  */
+
+#define DEBUGP(args) do { IF_DEBUG { debug_logprintf args; } } while (0)
 
 /* Define an integer type that works for file sizes, content lengths,
    and such.  Normally we could just use off_t, but off_t is always