[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] QEMU_BUILD_BUG_ON: use __COUNTER__

From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] QEMU_BUILD_BUG_ON: use __COUNTER__
Date: Tue, 31 Jan 2017 15:47:32 +0000

On 31 January 2017 at 15:26, Markus Armbruster <address@hidden> wrote:
> __COUNTER__ was added to GNU cpp in 2007.  Good.  What about clang?
> "clang -dM -E -x c /dev/null" comes up empty on my machine (3.8.0).

Since __COUNTER__ is magic it doesn't appear in the -dM output.
You can test for it working with
echo 'counter is __COUNTER__ __COUNTER__' | clang -E -x c -

-- PMM

reply via email to

[Prev in Thread] Current Thread [Next in Thread]