MAINFILE in IDE Tools

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Sergey
User
User
Posts: 93
Joined: Wed Jan 12, 2022 2:41 pm

MAINFILE in IDE Tools

Post by Sergey »

Hi,
now we have %FILE - compiled source
%TEMPFILE - temp file equal source file
%COMPILEFILE - TempDir\PB_EditorOutput.pb on Windows

Sometimes it is runned or compiled not from the main file, but from an include file
To find out the path of the main file, you need to scan the include file for IDE parameters and find the line UseMainFile
Although it would be easier if there was a %MAINFILE parameter, I think
Please, add this parameter for Tools

P.S. chukcha isn't a writer