Sign in Join
Wiki copytemporary

sIfdef/de

Zurück zu den lokalen Compilerdirektiven.\

=$IFDEF= Die Direktive $IFDEF gehört zur bedingten Compilierung.
Die Direktive $IFDEF ist der Bedingungsteil.
Ist die in der Bedingung abgefragte Direktive nicht definiert dann wird der Anweisungsblock der Direktive {$ELSE} compiliert.\

Beispiel:\

pascal
{$IFDEF ...} // Bedingung fragt ab, ob die Direktive ... existiert
  // Einzelanweisung oder Anweisungsblock
{$ELSE}   // Sonstzweig
  // Einzelanweisung oder Anweisungsblock
{$ENDIF}  // Ende der bedingten Kompilierung.
// Der Bedingungsblock kann auch mit {$IFEND} anstelle von {$ENDIF} abgeschlossen werden.

--Olaf 18:01, 7 December 2012 (UTC)


From the Free Pascal wiki, page "sIfdef/de", as it stood on 2013-04-21 after a change by Olaf, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Edited on wiki.freepascal.org by 2 people, 2012–2013

From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.

WhenWhoWhat changed
OlafCreated page
Olaf$IFDEF
Olaf (minor)
Olaf (minor)
Swen (minor)
Olaf (minor)

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.