A
Andrew Arro
first of all i would like to thank Alexander Bartolich and Richard
Heathfield for answering my
"macros question" #1
another macros question now:
how could i define a macros with variable number of parameters? i want
to create
void printfatal(char *file, int line, char *format, ...);
so i wanna define a macros wich i could call like
fatal("%d %s", var1, var2);
and which would be preprocessed into
printfatal(__FILE__, __LINE__, "%d %s", var1, var2);
is that possible?
Heathfield for answering my
"macros question" #1
another macros question now:
how could i define a macros with variable number of parameters? i want
to create
void printfatal(char *file, int line, char *format, ...);
so i wanna define a macros wich i could call like
fatal("%d %s", var1, var2);
and which would be preprocessed into
printfatal(__FILE__, __LINE__, "%d %s", var1, var2);
is that possible?