IfDef and Lazarus

Define your own defines:

This can be used like this:

{$IFDEF APPSTORE}
{$ENDIF APPSTORE}

OS defines

Examples:

{$IFDEF MSWINDOWS}
    // Windows only
{$ENDIF MSWINDOWS}

{$IFDEF Darwin}
    // OSX only
{$ENDIF Darwin} 

{$IFDEF LINUX}
    // Linux only
{$ENDIF} 

Other possible defines for different operating systems:

Werbung



comments powered by Disqus

Copyright Dunkel & Iwer GbR | Datenschutzerklärung | Impressum