Wiki-KopieMirror

Dies ist ein Mirror des Wikis von pascal.chat. Bearbeiten, Verlauf und Anmeldung finden dort statt.

IDE Window: Conditional Defines/de

Deutsch · English · Français

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:

text
 {$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.

Version 3, zuletzt geändert von WikiArchive .