Search:

Type: Posts; User: Richardcavell

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    4,709

    Error checking

    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...
  2. Replies
    6
    Views
    4,709

    Not even for a variadic macro? It's not really a...

    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...
  3. Replies
    6
    Views
    4,709

    Overloading a variadic macro

    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_...
Results 1 to 3 of 3