Page 1 of 1

new compiler constant #PB_Compiler_LibrarySubSystem

Posted: Fri Mar 01, 2019 4:18 am
by Demivec
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.

Re: new compiler constant #PB_Compiler_LibrarySubSystem

Posted: Fri Mar 01, 2019 5:25 am
by Josh
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.

Example

Code: Select all

  CompilerIf Subsystem("OpenGL")
    Debug "Compiling with the OpenGL subsystem"
  CompilerEndIf
A constant is not possible, since theoretically several subsystems can be entered.

Re: new compiler constant #PB_Compiler_LibrarySubSystem

Posted: Fri Mar 01, 2019 6:17 am
by Demivec
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.