PureBasic Forum http://forums.purebasic.com/english/ |
|
Compiler: "--preprocess" should add comments for includes http://forums.purebasic.com/english/viewtopic.php?f=3&t=74868 |
Page 1 of 1 |
Author: | Sicro [ Sat Mar 14, 2020 8:24 pm ] |
Post subject: | Compiler: "--preprocess" should add comments for includes |
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: Debug "Main 1" IncludeFile "Include.pbi" Debug "Main 2" Include.pbi: Code: Debug "Include 1" After running Code: $ pbcompiler Main.pb --preprocess All.pb the content of the file All.pb should look like this, for example:Code: Debug "Main 1"
; Start of include "Include.pbi" Debug "Include 1" ; End of include Debug "Main 2" |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |