Page 1 of 1

Compiler: "--preprocess" should add comments for includes

Posted: Sat Mar 14, 2020 8:24 pm
by Sicro
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:

Code: Select all

Debug "Main 1"

IncludeFile "Include.pbi"

Debug "Main 2"
Include.pbi:

Code: Select all

Debug "Include 1"
After running

Code: Select all

$ pbcompiler Main.pb --preprocess All.pb
the content of the file All.pb should look like this, for example:

Code: Select all

Debug "Main 1"

; Start of include "Include.pbi"
Debug "Include 1"
; End of include

Debug "Main 2"