Merge all file of a project into one (from #include to one file)

 

Hello !


I've looked around and could not find a way to get the file of an EA or indicator just after preprocessor has run and just before compilation.


What I'm trying to get is actually the one file with all the include merged inside  but not the .ex4 version, still get the .mq4 code readable.

Do you know a way to get this "merged file" ?


Thank you and have a nice day  !

 
Kévin Oudot:

Hello !


I've looked around and could not find a way to get the file of an EA or indicator just after preprocessor has run and just before compilation.


What I'm trying to get is actually the one file with all the include merged inside  but not the .ex4 version, still get the .mq4 code readable.

Do you know a way to get this "merged file" ?


Thank you and have a nice day  !


The simplest way is just copy and paste the codes into one file.

 

thx for your answer, it seems to be the only way. However not a simple one because I have a lot of files and sometimes they are included multiple time (which I manage thx to #ifndef/#def/#endif ) but I guess unfortunately there is no workaround.



 
Kévin Oudot #: they are included multiple time (which I manage thx to #ifndef/#def/#endif )

You fixed nothing. MTx does not need include guards.