DEVELOP > C > Macros with variable parameter list in MS VC Compiler (6.0)
| Topic: |
DEVELOP > C |
| User: |
"Michael Zeile" |
| Date: |
20 Jan 2005 03:22:33 AM |
| Object: |
Macros with variable parameter list in MS VC Compiler (6.0) |
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
.
|
|
| User: "CBFalconer" |
|
| Title: Re: Macros with variable parameter list in MS VC Compiler (6.0) |
20 Jan 2005 04:27:52 AM |
|
|
Michael Zeile wrote:
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 ) ?
You can't. That is a variadic macro, in either GNU or C99 form.
gcc can handle it.
--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
.
|
|
|
|

|
Related Articles |
|
|