Welcome to Pauls PureProject
 Home Online Reference Guide duplicated from http://cvs.purebasic.com  
 Online Resources
   · Reference

 Libraries
     2DDrawing
     Billboard
     Camera
     CDAudio
     Cipher
     Clipboard
     Console
     Database
     Date
     Desktop
     Engine3D
     Entity
     File
     FileSystem
     Font
     Gadget
     Help
     Image
     ImagePlugin
     Joystick
     Keyboard
     Library
     Light
     LinkedList
     Material
     Math
     Memory
     Menu
     Mesh
     Misc
     Module
     Mouse
     Movie
     Network
     OnError
     Packer
     Palette
     Particle
     Preference
     Printer
     Requester
     Sort
     Sound
     SoundPlugin
     Sprite
     Sprite3D
     StatusBar
     String
     SysTray
     Terrain
     Texture
     Thread
     Toolbar
     Window

 Compiler Directives


Syntax
CompilerIf  <constant expression>
  ...
[CompilerElse]
  ...
CompilerEndIf
Description
If the <constante expression> result is true, the code inside the CompilerIf will be compiled, else it will be totally ignored. It's useful when building multi-OSes programs to customize some programs part by using OS specific functions.

Example:

  CompilerIf #PB_Compiler_OS = #PB_OS_Linux
    ; some Linux specific code..
  CompilerEndIf

Syntax
CompilerSelect <numeric constant>
  CompilerCase
    ...
  [CompilerDefault]
    ...
CompilerEndSelect
Description
Works exactly like a regular Select : EndSelect but will tell the compiler which code should be compiled. It's useful when building multi-OSes programs to customize some programs part by using OS specific functions.

Example:

  CompilerSelect #PB_Compiler_OS
    CompilerCase #PB_OS_AmigaOS
      ; some Amiga specific code
    CompilerCase #PB_OS_Linux
      ; some Linux specific code
  CompilerEndSelect

Reserved Constants

The PureBasic compiler has several reserved constants which can be useful to the programmer:

#PB_Compiler_Date : Contains the current date, at the compile time, in the PureBasic date format (see Date).

#PB_Compiler_OS : This constant allows to determine on which OS the compiler is currently running. It can be one of the following value:
- #PB_OS_Windows : The compiler is running on Windows
- #PB_OS_Linux : The compiler is running on Linux
- #PB_OS_AmigaOS : The compiler is running on AmigaOS



Hosted by Reel Media Productions Copyright©2001-2004 All Rights Reserved