Sign in Join
Wiki copytemporary

IDE Window: Conditional Defines/de: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: IDE Window: Conditional Defines/de

OldNewLine
1+Ein Dienstprogramm um beim Einfügen von $IFDEF's zu helfen. Zum Beispiel, um
2+```
3+OnCreate := @CreateHandler
4+```
5+
6+zu konvertieren zu:
7+```
8+OnCreate := {$IFDEF FPC} @ {$ENDIF} CreateHandler
9+```
10+
11+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:
12+```
13+{$IFDEF DEBUG}
14+ Writeln('State= ', State)
15+ {$ENDIF}
16+```
17+
18+Die Auswahlmöglichkeiten sind in abgekürzter Form aufgelistet:
19+
20+ * MSWINDOWS,UNIX => {$IFDEF MSWINDOWS} ... {$ENDIF} {$IFDEF UNIX} ... {$ENDIF}
21+ * FPC,ELSE => {$IFDEF FPC} ... {$ELSE} ... {$ENDIF}
22+ * DEBUG,NONE => {$IFDEF DEBUG} ... {$ENDIF}
23+
24+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.
25+
26+Ihre Hinzufügungen werden in der condef.xml Datei im Lazarus Konfigurationsverzeichnis gespeichert.
27+
28+---
29+*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](/wiki-contact).*

Back to history