It is currently Sat Nov 28, 2020 12:42 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Compiler: "--preprocess" should add comments for includes
PostPosted: Sat Mar 14, 2020 8:24 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Jun 25, 2014 5:25 pm
Posts: 429
Location: Germany
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"

_________________
Image
Why OpenSource should have a license
PureBasic-CodeArchiv-Rebirth: Git-Repository / Download – Any help is welcome!
Manjaro Xfce x64 (Main system) :: WindowsXP/Xubuntu x86 (VirtualBox) :: PureBasic (Linux: x86/x64, Windows: x86) :: All are up to date


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye