Re: [Dev-C++] #define a "function" with variable number of parameters
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Minds W. <min...@gm...> - 2005-12-18 13:09:07
|
Hi Daniel, Thanks for the link. That page said that MACRO functions with variable number of arguments are only available in C99 and in some C++ compilers (but not in my compiler :-( ) So I cant use MACRO Functions with variable number of arguments, but is there a way to se use MACRO FUNCTIONS with default args? (like; void foo(const char* msg, int b =3D 0)) On 12/18/05, Daniel K. O. <dan...@ya...> wrote: > > Minds Work wrote: > > > Is there a way to change the #define LOG_INFO to receive a variable > > number of parameters to use the new LOG->info method? > > > See: > http://david.tribble.com/text/cdiffs.htm#C99-pp-vararg > > > --- > Daniel K. O. > > > > > > > _______________________________________________________ > Yahoo! doce lar. Fa=E7a do Yahoo! sua homepage. > http://br.yahoo.com/homepageset.html > > > |