mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-20 09:04:44 +00:00
21 lines
No EOL
1 KiB
Text
21 lines
No EOL
1 KiB
Text
The [[_OS$]] function returns the operating system and QB64 compiler bit version used to compile a QB64 program.
|
|
|
|
|
|
{{PageSyntax}}
|
|
: {{Parameter|compilerVersion$}} = [[_OS$]]
|
|
|
|
|
|
{{PageDescription}}
|
|
* Returns a [[STRING]] listing the OS as [WINDOWS], [LINUX] or [MACOSX] and the compiler bit format of [32BIT] or [64BIT]. [[Example: {{text|[WINDOWS][32BIT]|green}}]]
|
|
* Allows a BAS program to be compiled with QB64 in Windows, Linux or MacOSX using different OS or language specifications.
|
|
* Use the return {{Parameter|compilerVersion$}} to specify the current OS code to use when a BAS program is compiled using another version of the QB64 compiler.
|
|
* Windows can use either a 32 (default) or 64 bit compiler. Linux and Mac use 64 bit by default.
|
|
* Explanation by Galleon: http://www.qb64.net/forum/index.php?topic=12193.msg105406#msg105406
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
* [[ENVIRON$]]
|
|
* [[QB64_FAQ#Q:_How_do_I_upgrade_the_32_bit_Windows_version_of_QB64_to_64_bit_functionality.3F|Upgrading QB64 to use a 64-bit compiler in Windows]]
|
|
|
|
|
|
{{PageNavigation}} |