MAINFILE in IDE Tools
Posted: Fri Feb 13, 2026 7:45 am
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
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