I request a new compiler constant that will return the Library SubSystem being compiled for, possibly named #PB_Compiler_LibrarySubSystem.
This would be helpful for condition compiling options that depend on the Library being used.
new compiler constant #PB_Compiler_LibrarySubSystem
Re: new compiler constant #PB_Compiler_LibrarySubSystem
A constant is not possible, since theoretically several subsystems can be entered.Help wrote: Syntax
Result = Subsystem(<constant string expression>)
Description
Subsystem can be used to find out if a subsystem is in use for the program being compiled. The name of the subsystem is case sensitive.
ExampleCode: Select all
CompilerIf Subsystem("OpenGL") Debug "Compiling with the OpenGL subsystem" CompilerEndIf
sorry for my bad english
Re: new compiler constant #PB_Compiler_LibrarySubSystem
Thank you Josh for this information. I am able to code the things I need to now. I had overlooked the fact that more than one subsystem could be used.
Since my expressed need is already met by the method you shared I naturally withdraw my feature request.
Since my expressed need is already met by the method you shared I naturally withdraw my feature request.