stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Variadic Macros ?
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4764
Page 1 of 1
Author:  tonegarot [ Wed Jun 15, 2016 9:32 pm ]
Post subject:  Variadic Macros ?

Hi,

I am trying to use variable arguments in a macro. Something like:

#define DEBUG(fmt, ...) PrintFormat(fmt, ##__VA_ARGS__)

or

#define DEBUG(format, args...) PrintFormat (stderr, format, args)

I am getting the following error:

error 317: '.' - unexpected in macro formal parameter list

Is there a way to use variadic macros in mql4?

Regards
Author:  milanese [ Wed Jun 15, 2016 10:09 pm ]
Post subject:  Variadic Macros ?

tonegarot ยป Wed Jun 15, 2016 9:32 pm wrote:Hi,

I am trying to use variable arguments in a macro. Something like:

#define DEBUG(fmt, ...) PrintFormat(fmt, ##__VA_ARGS__)

or

#define DEBUG(format, args...) PrintFormat (stderr, format, args)

I am getting the following error:

error 317: '.' - unexpected in macro formal parameter list

Is there a way to use variadic macros in mql4?

Regards
MQL does not support "macro magic" or varg lists

Cheers :)

Tommaso
Author:  SteveHopwood [ Wed Jun 15, 2016 11:32 pm ]
Post subject:  Variadic Macros ?

I have locked this idiotic thread.

tonegarot, one more dimwitted post from you and I will remove your ability to post at all.
All times are UTC Page 1 of 1