G
Gernot Bauer
Hi!
I am trying to automate some work by using the preprocessor. Please
consider the following example:
-----------------------------------------------------------------
#define MY_CLASS(ClassType) \
class ##ClassType \
{ \
}
MY_CLASS(MyClassName);
int main()
{
return 0;
}
-----------------------------------------------------------------
The preprocessor output looks like this (I am using VC 8.0):
-----------------------------------------------------------------
classMyClassName { };
int main()
{
return 0;
}
-----------------------------------------------------------------
As you can see, the (intended) white space between the keyword class and
the argument is deleted, thus the generated code is not compileable.
Is there any way to get a white space between class and MyClassName? I
already searched on the web, but did not find anything.
Any help would be highly appreciated!
Kind regards,
Gernot
I am trying to automate some work by using the preprocessor. Please
consider the following example:
-----------------------------------------------------------------
#define MY_CLASS(ClassType) \
class ##ClassType \
{ \
}
MY_CLASS(MyClassName);
int main()
{
return 0;
}
-----------------------------------------------------------------
The preprocessor output looks like this (I am using VC 8.0):
-----------------------------------------------------------------
classMyClassName { };
int main()
{
return 0;
}
-----------------------------------------------------------------
As you can see, the (intended) white space between the keyword class and
the argument is deleted, thus the generated code is not compileable.
Is there any way to get a white space between class and MyClassName? I
already searched on the web, but did not find anything.
Any help would be highly appreciated!
Kind regards,
Gernot