Hi. I'm using gcc with -std=c99. I want to do this:
#define myfunction (A,B) myfunction_ (__FILE__,__LINE__ ,A,B)
#define myfunction (A,B,C,...) myfunctionf_ (__FILE__,__LINE__,A,B,C,__VAR_ARGS__)
The idea is that I can call myfunction with a variable number of arguments. If there are exactly two, myfunction_ is given control. If there are three or more, myfunctionf_ is called. Is this possible in C at all?
Richard