Compiler: "--preprocess" should add comments for includes
Posted: Sat Mar 14, 2020 8:24 pm
When merging code with includes via the PB compiler with the --preprocess parameter, it would be helpful if the process would add comments that mark which include file it is, where the include code begins and where it ends.
Example:
Main.pb:
Include.pbi:
After running
the content of the file All.pb should look like this, for example:
Example:
Main.pb:
Code: Select all
Debug "Main 1"
IncludeFile "Include.pbi"
Debug "Main 2"
Code: Select all
Debug "Include 1"
Code: Select all
$ pbcompiler Main.pb --preprocess All.pb
Code: Select all
Debug "Main 1"
; Start of include "Include.pbi"
Debug "Include 1"
; End of include
Debug "Main 2"