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