[Spice-devel] [PATHCH win-qxl 4/8] display/qxldd.h: add DEBUG_PRINT_ONCE

Alon Levy alevy at redhat.com
Fri Apr 8 06:19:07 PDT 2011


On Fri, Apr 08, 2011 at 12:07:34PM +0200, Christophe Fergeau wrote:
> Hi,
> 
> On Fri, Apr 08, 2011 at 11:48:12AM +0200, Hans de Goede wrote:
> > nit pick, the usual way to do preprocessor macros with { } is:
> 
> I was about to nit pick about the same thing ;) 
> 
> On a side note, I'm curious about the 
> #define DEBUG_PRINT(arg) DebugPrint arg
> which require using double (( as in DEBUG_PRINT(("%s", str));
> Using gcc it's possible to write a macro which does not need (( ))
> Is that done this way because the windows driver is compiled with visual
> c++ and it has a less sophisticated preprocessor?
yes, you can't do a variable argument macro with the winddk supplied compiler,
which I believe is the same as the visual studio one. (different version probably).
> 
> Christophe




More information about the Spice-devel mailing list