[vmkit-commits] [vmkit] r52869 - /vmkit/trunk/include/debug.h

Nicolas Geoffray nicolas.geoffray at lip6.fr
Sat Jun 28 08:03:12 PDT 2008


Author: geoffray
Date: Sat Jun 28 10:03:11 2008
New Revision: 52869

URL: http://llvm.org/viewvc/llvm-project?rev=52869&view=rev
Log:
Use the __VA_ARGS__ format of macros, not ##args...


Modified:
    vmkit/trunk/include/debug.h

Modified: vmkit/trunk/include/debug.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/include/debug.h?rev=52869&r1=52868&r2=52869&view=diff

==============================================================================
--- vmkit/trunk/include/debug.h (original)
+++ vmkit/trunk/include/debug.h Sat Jun 28 10:03:11 2008
@@ -47,17 +47,17 @@
 #if DEBUG > 0
 
   #ifdef WITH_COLOR
-    #define PRINT_DEBUG(symb, level, color, args...) \
+    #define PRINT_DEBUG(symb, level, color, ...) \
       if (symb > level) { \
           printf("%s%s%s", ESC, color, END); \
-          printf(##args); \
+          printf(__VA_ARGS__); \
           printf("%s%s%s", ESC, COLOR_NORMAL, END); \
           fflush(stdout); \
       }
   #else
-    #define PRINT_DEBUG(symb, level, color, fmt, args...) \
+    #define PRINT_DEBUG(symb, level, color, ...) \
       if (symb > level) { \
-        printf(##args); \
+        printf(__VA_ARGS__); \
         fflush(stdout); \
       }
   #endif





More information about the vmkit-commits mailing list