Macros with variable parameter list in MS VC Compiler (6.0)

Discussion in 'C Programming' started by Michael Zeile, Jan 20, 2005.

  1. Hi,

    i've found this code snipplet here around somewhere:

    #define eprintf(format,args,...) fprintf(stderr,format,## args)

    i think this is working with a gcc compiler. can anyone tell me how i
    can implement this functionality with the microsoft c compiler ( part of
    microsoft visual studio 6.0 ) ?

    thx a lot
    bye michael
     
    Michael Zeile, Jan 20, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    80
    Views:
    3,148
    Stephen J. Bevan
    Nov 7, 2003
  2. Replies:
    1
    Views:
    670
    Marco Antoniotti
    Oct 7, 2003
  3. Replies:
    5
    Views:
    701
  4. Andrew Arro

    macros-loop? calling macros X times?

    Andrew Arro, Jul 23, 2004, in forum: C Programming
    Replies:
    2
    Views:
    634
    S.Tobias
    Jul 24, 2004
  5. Ben Kial
    Replies:
    1
    Views:
    948
    Eric Enright
    Nov 15, 2004
  6. Anthony de Almeida Lopes

    Macros within function-like macros?

    Anthony de Almeida Lopes, Dec 26, 2005, in forum: C Programming
    Replies:
    13
    Views:
    976
  7. Replies:
    4
    Views:
    739
    Matteo
    Mar 29, 2007
  8. Thant Tessman

    macros that build macros

    Thant Tessman, Sep 11, 2007, in forum: C Programming
    Replies:
    6
    Views:
    506
    Dave Hansen
    Sep 11, 2007
Loading...