W
Wessi
Hi,
token pasting means, that normally whitespaces and comments are deleted
before and after the ## operator. I want the preprocessor to hold an
existing whitespace while replacing the argument of a macro. Example:
The following define and macro
#define ISR_CAT1(NAME) __interrupt void ##NAME(void)
ISR_CAT1(myIsrHandler)
{
}
should be expanded to
__interrupt void myIsrHandler(void)
{
}
But the preprocessor does the following replacement (deleting
whitespaces before ##):
__interrupt voidmyIsrHandler(void)
{
}
Is there any possibility to avoid this kind of replacement/deleting the
whitespaces in front of ## operator?
token pasting means, that normally whitespaces and comments are deleted
before and after the ## operator. I want the preprocessor to hold an
existing whitespace while replacing the argument of a macro. Example:
The following define and macro
#define ISR_CAT1(NAME) __interrupt void ##NAME(void)
ISR_CAT1(myIsrHandler)
{
}
should be expanded to
__interrupt void myIsrHandler(void)
{
}
But the preprocessor does the following replacement (deleting
whitespaces before ##):
__interrupt voidmyIsrHandler(void)
{
}
Is there any possibility to avoid this kind of replacement/deleting the
whitespaces in front of ## operator?