It goes like this: I am passing a string as a parameter. If there are no further arguments, it is printed to screen with printf ("%s", pstring ) ;, and similarly to log file.
If there are further...
Type: Posts; User: Richardcavell
It goes like this: I am passing a string as a parameter. If there are no further arguments, it is printed to screen with printf ("%s", pstring ) ;, and similarly to log file.
If there are further...
Not even for a variadic macro? It's not really a function.
I guess we could do something like this, but it's not Standard C, which I want.
#define myfunction (A,__VA_ARGS__)
{
#if...
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_...