Delphi Compiler Directives

Posted on  by admin
Delphi

Delphi Compiler

#if COOPER // Compile the following for Java only. #if TOFFEE && TARGETOSIPHONE // Compile the following for Cocoa / iOS only. #if ECHOES COOPER // Compile the following for.NET and Java (but not Cocoa). The walking dead temporada 10 capitulo 1. #if!TOFFEE // Don't compile the following for Cocoa (but do for.NET and Java). The ' elseif' (or ' elif' in C#) directive follows a previous ' if' directive (and optional ' elseif' directives). It closes the previous blocks and starts a new block of code that will be compiled if none of the previous conditions have been met and the condition provided in the directive itself is met. ' elseif'/' elif' allow the cascading of multiple cases, comparable to a case statement in regular code, without requiring a convoluted nesting of multiple ' if'/' endif' directives.