
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
tried it, but it didn't work...
how do I make a macro to override the default parameter in a callable function in an inluded file?
I have the first file, which is an "plugin":
I want to connect this inluder, but with a possibility to substitute the text"127.0.0.1" with macros (if necessary)
i.e. I need some define here:
but so that if there is no this define, then host="127.0.0.1" will work if there is adefaulthost definethen use it
if this define is missing, then host="127.0.0.1" will work ifdefaulthost is present, then use it
#ifdef, #else, #endif.
#ifdef, #else, #endif.
I know that - those are the words I'm looking for
I can't figure out what to put in the brackets.
I know that's what I'm looking for.
I can't figure out what to put in the brackets.
Same thing, but more readable.
Same thing, but more readable.
And this is even more flexible.
Thank you! It works!
ZS: got confused between 2 files - needed to get a workable macro substitution in one file first, then spread out between files ((
There's a great library for MT4 by a good man that solves many of the quad's problems in a very original way. Written in fxsabera style, it doesn't make shit sense, but it works! I think you will find it interesting.
Good luck
is there any way to add a small prefix to the function name using a macro prefix,
i.e. i have this code in the "inluder":
I want to define a macro in the "master file" so that the above code becomes this:
i.e. i'm looking for some way to change the name of a group of functions
is there any way to prefix the function name with a small macro prefix