I'm trying to create an enum with a macro ex.
As you can see VAX recognizes all except Car2, the last parameter. Enum11 likewise will not recognize the last two parameters.
Here's the code in text.
#define ENUM(name,...)\ enum name{__VA_ARGS__};
ENUM(Hello, Hi, Bye, Later, Woah, Hey, There, Argh, Lost, Car );
#define ENUM10(name,P1,P2,P3,P4,P5,P6,P7,P8,PNOTRECOGNIZED2)\ enum name{P1,P2,P3,P4,P5,P6,P7,P8,PNOTRECOGNIZED2};
ENUM10(WhyHi, Hi2, Bye2, Later2, Woah2, Hey2, Ther2e, Argh2, Lost2, Car2 );
You can see I also attempted a macro var args version, but this didn't work at all. It would be nice if support for this is added.
I also turned off LimitMacroParsing, but that didn't help.
Thanks in advance.
edit:
Visual Studio 2008
VAX 10.6.1837.0 built 2010.11.19
(slightly out of date, ran out of updates will renew if this is fixed)
Language: c++