Sign in Join
Wiki copytemporary

Revision 1 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

pascal
OnCreate := @CreateHandler

zu konvertieren zu:

pascal
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:

pascal
{$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 the Internet Archive kept it on 2023-03-22. 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.