From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=52151 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Okkjg-0004LG-CV for qemu-devel@nongnu.org; Sun, 15 Aug 2010 17:27:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Okkjb-0004It-DR for qemu-devel@nongnu.org; Sun, 15 Aug 2010 17:27:20 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:60038) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Okkjb-0004If-6R for qemu-devel@nongnu.org; Sun, 15 Aug 2010 17:27:15 -0400 From: Andreas Schwab References: Date: Sun, 15 Aug 2010 23:27:12 +0200 In-Reply-To: (Blue Swirl's message of "Sun, 15 Aug 2010 17:50:07 +0000") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [PATCH 1/5] HACKING: add preprocessor rules List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel Blue Swirl 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, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."