Sign in Join
Wiki copytemporary

Revision 2 of 2, by FTurtle on 6-7-2015. The page as it is now.

IDE Macros in paths and filenames/de

Macros verwenden das folgende Format. Dabei wird macro-name durch eines der unten aufgelisteten Macros ersetzt.

text
$(macro-name)

Beispiel: Dieses Format gibt das Ausgabeverzeichnis für Units an. Es wird häufig für Lazarus Packages benutzt:

text
lib/$(TargetCPU)-$(TargetOS)

unter einem x86 Linux 32-bit System würde daraus: lib/i386-linux
unter einem x86 Linux 64-bit System würde daraus: lib/x86_64-linux

Es gibt auch einige Macrofunktionen die folgendes Format verwenden:

text
$macro_name(parameters)

Beispiel:

text
$Ext(unit1.pas)

liefert die Dateierweiterung .pas.

Allgemeine Verwendung

Dateinamen und Teile davon

Pfade und Teile davon


From the Free Pascal wiki, page "IDE Macros in paths and filenames/de", as it stood on 2015-06-07 after a change by FTurtle, 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.