JEDI Help:TargetOS

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Help

Search in JEDI Help

 
Search in all projects
 


Summary

Compiler symbols for detecting target OS platform.


Pascal

 {$IFDEF SYMBOL}
 // this code will be compiled only for this platform
 {$ENDIF SYMBOL}


Description

Once jedi.inc is included at the top of your pascal source file, the following compiler symbols are defined depending on the target OS platform.
These symbols can be used for code conditional compilation based on target OS platform:

Symbol Description
WIN32 Defined when target platform is 32 bit Windows
WIN64 Defined when target platform is 64 bit Windows
MSWINDOWS Defined when target platform is 32 bit Windows
LINUX Defined when target platform is Linux
UNIX Defined when target platform is Unix-like (including Linux)
CLR Defined when target platform is .NET
PUREPASCAL Code is machine-independent (as opposed to assembler code)
Win32API Code is specific for the Win32 API; use instead of "{$IFNDEF CLR} {$IFDEF MSWINDOWS}" constructs


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page