IDE Window: Conditional Defines/fr
Capture d'écran
sélectionner texte puis Edition->Inserer $IFDEF 
Description
Utilitaire pour assister l'insertion de directives de définitions conditionnelles. Par exemple , pour convertir
OnCreate := @CreateHandlervers:
OnCreate := {$IFDEF FPC} @ {$ENDIF} CreateHandlersélectionnez @ et utilisez le menu Edition, insérer $IFDEF (raccourci par défaut Ctrl+Shift+D), sélectionnez "FPC,NONE" et tapez sur Entrée (ou cliquez sur OK). Si vous sélectionnez une ou plusieurs lignes complètes alors les définitions conditionnelles sont mises sur des lignes séparées comme dans:
{$IFDEF DEBUG}
Writeln('State= ', State)
{$ENDIF}Les choix possibles sont listés sous une forme abrégée ainsi:
- MSWINDOWS,UNIX => {$IFDEF MSWINDOWS} ... {$ENDIF} {$IFDEF UNIX} ... {$ENDIF}
- FPC,ELSE => {$IFDEF FPC} ... {$ELSE} ... {$ENDIF}
- DEBUG,NONE => {$IFDEF DEBUG} ... {$ENDIF}
Cet outil est le plus utile quand vous devez mettre plusieurs conditions identiques dans un fichier, vous pouvez ajouter les conditions possibles en sélectionnant ou en tapant les symboles requis dans le "premier test" et/ou "Second test" et en utilisant le bouton Add.
Your additons are saved in the condef.xml file in the lazarus configuration directory.
From the Free Pascal wiki, page "IDE Window: Conditional Defines/fr", as it stood on 2020-02-17 after a change by Trev, 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.
Edited on wiki.freepascal.org by 3 people, 2007–2020
From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.
| When | Who | What changed |
|---|---|---|
| Paulatreides | New page: {{Conditional Defines}} = Capture d'écran = center = Description = Utility to assist in inserting conditional defines. For example, to convert OnCreate ... | |
| Paulatreides | Capture d'écran | |
| Paulatreides | Description | |
| Paulatreides | Capture d'écran | |
| Vincent | Text replace - "delphi>" to "syntaxhighlight>" (minor) | |
| Trev | Fixed syntax highlighting (minor) |
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
