enum ArgPos
{
P1 = 1,
P2 = 2,
P3 = 3
};
void fun(int, int, int);
#define FUN(ArgPos, ArgPos, ArgPos) fun(ArgPos, ArgPos, ArgPos)
int main(void)
{
FUN(P1, P2, P3);
return 0;
}
void fun(int a, int b, int c)
{
printf("fun");
}
enum ArgPos { P1 = 1, P2 = 2, P3 = 3 }; void
Share
the define (if you really write it like that) have an error using the same name for args
should be