Token passing with more then one argument

What's to be done for a substitution with
more than one argument?

Next line

NewStatus(Act, state1)

should be substituted to

if(ActSaved.bits.state1 == SET)

Macro definition (not working):

#define NewStatus(a,b) if(##aSaved.bits.##b == SET)

How is that possible?

Parents Reply Children
No data
More questions in this forum