Re: [Dev-C++] #define a "function" with variable number of parameters
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2005-12-18 17:59:29
|
No default arguments possible. /Per W On Sun, 18 Dec 2005, Minds Work wrote: > 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 > > > > > > > |