[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 1/5] HACKING: add preprocessor rules
From: |
Andreas Schwab |
Subject: |
[Qemu-devel] Re: [PATCH 1/5] HACKING: add preprocessor rules |
Date: |
Sun, 15 Aug 2010 23:27:12 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Blue Swirl <address@hidden> writes:
> +For variadic macros, stick with C99 syntax:
> +
> +#define DPRINTF(fmt, ...) \
> + do { printf("IRQ: " fmt, ## __VA_ARGS__); } while (0)
That's not C99 syntax, the combination with ## is a gcc extension. In
C99 you cannot have an empty __VA_ARGS__.
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."