Sign in Join
Wiki copytemporary

Revision 2 of 3, by WikiArchive on 11-4-2026. The page as it is now.

IDE Window: Conditional Defines/de

Ein Dienstprogramm um beim Einfügen von $IFDEF's zu helfen. Zum Beispiel, um

 OnCreate := @CreateHandler

zu konvertieren zu:

 OnCreate := {$IFDEF FPC} @ {$ENDIF} CreateHandler

Wählen sie @ und dann Edit, fügen $IFDEF ein (Vorgabe-Tastenkombination Strg+Shift+D), wählen "FPC,NONE" und drücken die Enter Taste. Wenn sie eine oder mehrere komplette Zeilen auswählen, dann werden die $IFDEF's auf separate Zeilen verteilt wie in:

 {$IFDEF DEBUG}
 Writeln('State= ', State)
 {$ENDIF}

Die Auswahlmöglichkeiten sind in abgekürzter Form aufgelistet:

This tool is most useful when you need to put several identical conditionals in a file, you can add to the possible conditionals by selecting or typing the required symbols in "First test" and /or "Second test" and using the Add button.

Ihre Hinzufügungen werden in der condef.xml Datei im Lazarus Konfigurationsverzeichnis gespeichert.\


From the Free Pascal wiki, page "IDE Window: Conditional Defines/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.