New constants (self-explanatory) for use in IncludeFiles

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Axolotl
Addict
Addict
Posts: 837
Joined: Wed Dec 31, 2008 3:36 pm

New constants (self-explanatory) for use in IncludeFiles

Post by Axolotl »

Makes the name of the main source file available in include files.

Code: Select all

; Internal use in INCLUDE files according to the respective main source file 
; 
#PB_Compiler_MainFilePath      = #PB_Compiler_FilePath     ; this kept the file path          of the main source
#PB_Compiler_MainFilename      = #PB_Compiler_Filename     ;  -"-          file name           -"-
#PB_Compiler_MainFile          = #PB_Compiler_File         ;  -"-          file path and name  -"-
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
Quin
Addict
Addict
Posts: 1133
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: New constants (self-explanatory) for use in IncludeFiles

Post by Quin »

+1
Post Reply