JEDI Help:TargetOS - Project JEDI Wiki

JEDI Help:TargetOS

From Project JEDI Wiki

Jump to: navigation, search
JEDI Help

Search in JEDI Help

 
Search in all projects
 

Contents


[edit] Summary

Compiler symbols for detecting target OS platform.


[edit] Pascal

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


[edit] 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


[edit] About

[edit] 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

Personal tools
Navigation
Project JEDI
Code Library
Visual Component Library
Version Control System
Math Library
Code Formatter