gperf -- #define for if (0) ; else for
Bruce Cran
bruce at cran.org.uk
Mon Oct 21 10:30:05 UTC 2013
On 10/21/2013 5:13 AM, Benjamin Kaduk wrote:
>
>> 37
>> 38 /* Assume ISO C++ 'for' scoping rule. */
>> 39 #define for if (0) ; else for
>
> StackOverflow (!) [1] suggests that they're a workaround for a bug in
> old versions of Visual Studio.
http://msdn.microsoft.com/en-us/library/b80153d8%28v=vs.90%29.aspx also
documents it. Visual C++ 6 was released in 1998, which was
unfortunately the same year as the first ISO C++ standard.
--
Bruce Cran
More information about the freebsd-hackers
mailing list