Sign in Join
Wiki copytemporary

IDE Window: Conditional Defines/fr

Deutsch · English · Français

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

pascal
  OnCreate := @CreateHandler

vers:

pascal
  OnCreate := {$IFDEF FPC} @ {$ENDIF} CreateHandler

sé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:

pascal
  {$IFDEF DEBUG}
  Writeln('State= ', State)
  {$ENDIF}

Les choix possibles sont listés sous une forme abrégée ainsi:

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.

Revision 1, last changed by WikiArchive .

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.

WhenWhoWhat changed
PaulatreidesNew page: {{Conditional Defines}} = Capture d'écran = center = Description = Utility to assist in inserting conditional defines. For example, to convert OnCreate ...
PaulatreidesCapture d'écran
PaulatreidesDescription
PaulatreidesCapture d'écran
VincentText replace - "delphi>" to "syntaxhighlight>" (minor)
TrevFixed syntax highlighting (minor)

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.