8/5/2023 0 Comments Purebasic integer![]() #PB_Compiler_Executable : Regular executable ![]() #PB_Compiler_ExecutableFormat : Determines executable format. #PB_Processor_圆4 : x86-64 processor architecture (also called 圆4, AMD64 or Intel64) ![]() #PB_Processor_x86 : x86 processor architecture (also called IA-32 or x86-32) #PB_Compiler_Processor : Determines the processor type for which the program is created. #PB_OS_MacOS : The compiler is running on Mac OS X #PB_OS_Linux : The compiler is running on Linux #PB_OS_Windows : The compiler is running on Windows #PB_Compiler_OS : Determines on which OS the compiler is currently running. The PureBasic compiler has several reserved constants which can be useful to the programmer: In the source code, see the inline assembler section for more information. When enabled, all the assembler keywords are available directly It can help to catch typo bugs.Įnables or disables the inline assembler. When enabled, all the variables which are not explicitlyĭeclared with Define, Global, Protected or Syntax EnableExplicit DisableExplicit DescriptionĮnables or disables the explicit mode. When doing specialized routines, or to inform a source code is not available on an particular OS.Įxample CompilerIf #PB_Compiler_OS = #PB_OS_Linux CompilerError "Linux isn't supported, sorry."ĬompilerElse CompilerError "OS supported, you can now comment me." Generates an error, as if it was a syntax error and display the associated message. It's useful when building multi-OSes programs to customize some programs partĮxample CompilerSelect #PB_Compiler_OS CompilerCase #PB_OS_MacOS some Mac OS X specific code CompilerCase #PB_OS_Linux some Linux specific code CompilerEndSelect It will tell the compiler which code shouldīe compiled. Works like a regular Select : EndSelect except that only one numeric The And and Or KeywordsĬan be used in to combine multiple conditions.Įxample CompilerIf #PB_Compiler_OS = #PB_OS_Linux And #PB_Compiler_Processor = #PB_Processor_x86 some Linux and x86 specific code. It's useful when building multi-OSes programs toĬustomize some programs part by using OS specific functions. If the result is true, the code inside the CompilerIf will be compiled,Įlse it will be totally ignored.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |