
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
Include directives and preprocessor macros are processed line by line in linear order. Same as with the C preprocessor. Otherwise things like this wouldn't work:
...
The path specifier will be passed to the operating system's runtime environment as is. It's up to the OS how to deal with forward or backward slashes.
Windows (since XP afaik) is able to translate forward slashes into native format, which makes path specs with forward slashes more portable.
I need to return to this, because the statement is wrong.
Macro preprocessing is done after inclusion has been performed, while evaluation has been done line by line.
I would say, my statement was a little vauge in its expression of clarity, but see following example:
Example 1:
Example 2:
Neither work because preprocessing of macros is actually done after all preprocessor directives have been parced.
So, yes, it is true, preprocessor directives get read line by line, but the actual processing of them is done after this step.
Here is an article on forward slashes:
https://www.howtogeek.com/181774/why-windows-uses-backslashes-and-everything-else-uses-forward-slashes/
I need to return to this, because the statement is wrong.
Macro preprocessing is done after inclusion has been performed, while evaluation has been done line by line.
I would say, my statement was a little vauge in its expression of clarity, but see following example:
Example 1:
Example 2:
Neither work because preprocessing of macros is actually done after all preprocessor directives have been parced.
So, yes, it is true, preprocessor directives get read line by line, but the actual processing of them is done after this step.
Here is an article on forward slashes:
https://www.howtogeek.com/181774/why-windows-uses-backslashes-and-everything-else-uses-forward-slashes/
Neither work because Metaquotes preprocessor doesn't implement the whole C standard preprocessor, macro expansion are not working with #include. It's an MQL limitation.
https://gcc.gnu.org/onlinedocs/cpp/Computed-Includes.html#Computed-Includes
@Dominik I never got that far in using macros, so I can't comment from the top of my head, but Alain gave you the right answer anyways.
Keep it up guys, again a great read. Going to check out the links for sure.