IDE Window: Conditional Defines/de: what changed
Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | Ein Dienstprogramm um beim Einfügen von \$IFDEF's zu helfen. Zum Beispiel, um | |
| 2 | 2 | ||
| 3 | - | ||
| 3 | + | ``` pascal | |
| 4 | + | OnCreate := @CreateHandler | |
| 5 | + | ``` | |
| 4 | 6 | ||
| 5 | 7 | zu konvertieren zu: | |
| 6 | 8 | ||
| 7 | - | ||
| 9 | + | ``` pascal | |
| 10 | + | OnCreate := {$IFDEF FPC} @ {$ENDIF} CreateHandler | |
| 11 | + | ``` | |
| 8 | 12 | ||
| 9 | 13 | 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: | |
| 10 | 14 | ||
| 11 | - | ||
| 12 | - | ||
| 13 | - | ||
| 15 | + | ```text | |
| 16 | + | {$IFDEF DEBUG} | |
| 17 | + | Writeln('State= ', State) | |
| 18 | + | {$ENDIF} | |
| 19 | + | ``` | |
| 14 | 20 | ||
| 15 | 21 | Die Auswahlmöglichkeiten sind in abgekürzter Form aufgelistet: | |
| 16 | 22 | ||
| 17 | 23 | - MSWINDOWS,UNIX =\> {\$IFDEF MSWINDOWS} ... {\$ENDIF} {\$IFDEF UNIX} ... {\$ENDIF} | |
| 18 | 24 | - FPC,ELSE =\> {\$IFDEF FPC} ... {\$ELSE} ... {\$ENDIF} | |
| 19 | 25 | - DEBUG,NONE =\> {\$IFDEF DEBUG} ... {\$ENDIF} | |
| 20 | 26 | ||
| 21 | 27 | 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. | |
| 22 | 28 | ||
| 23 | 29 | Ihre Hinzufügungen werden in der condef.xml Datei im Lazarus Konfigurationsverzeichnis gespeichert.\ | |
| 24 | 30 | ||
| 25 | 31 | --- | |
| 26 | 32 | *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).* | |
| 27 | 33 | Category: Tutorials/de |
