Reputation: 437
I want to declare a define, using Visual Studio 2008 or 2010, like that:
#define a.b c.d
and I get following error:
error C2008: '.' : unexpected in macro definition
I see that I am allowed to create a define like this:
#define a c.d
Is the a.b
notation supposed to be allowed in the macro name?
Upvotes: 2
Views: 1159
Reputation: 361412
Macros has same set of rules for naming, as do identifiers. In fact, macro-names are identifiers.
So,
Upvotes: 13