Sign in Join
Wiki copytemporary

IDE Window: Conditional Defines/de: what changed

Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11Ein Dienstprogramm um beim Einfügen von \$IFDEF's zu helfen. Zum Beispiel, um
22
3-` OnCreate := @CreateHandler`
3+``` pascal
4+ OnCreate := @CreateHandler
5+```
46
57zu konvertieren zu:
68
7-` OnCreate := {$IFDEF FPC} @ {$ENDIF} CreateHandler`
9+``` pascal
10+ OnCreate := {$IFDEF FPC} @ {$ENDIF} CreateHandler
11+```
812
913Wä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:
1014
11-` {$IFDEF DEBUG}`\
12-` Writeln('State= ', State)`\
13-` {$ENDIF}`
15+```text
16+ {$IFDEF DEBUG}
17+ Writeln('State= ', State)
18+ {$ENDIF}
19+```
1420
1521Die Auswahlmöglichkeiten sind in abgekürzter Form aufgelistet:
1622
1723- MSWINDOWS,UNIX =\> {\$IFDEF MSWINDOWS} ... {\$ENDIF} {\$IFDEF UNIX} ... {\$ENDIF}
1824- FPC,ELSE =\> {\$IFDEF FPC} ... {\$ELSE} ... {\$ENDIF}
1925- DEBUG,NONE =\> {\$IFDEF DEBUG} ... {\$ENDIF}
2026
2127This 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.
2228
2329Ihre Hinzufügungen werden in der condef.xml Datei im Lazarus Konfigurationsverzeichnis gespeichert.\
2430
2531---
2632*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](/wiki-contact).*
2733Category: Tutorials/de

Back to history