Delphi Language Guide Delphi for Microsoft Win32 Delphi for the Microsoft. Net framework


Package-Specific Compiler Directives



Yüklə 0,84 Mb.
Pdf görüntüsü
səhifə220/294
tarix02.01.2022
ölçüsü0,84 Mb.
#41395
1   ...   216   217   218   219   220   221   222   223   ...   294
DelphiLanguageGuide

Package-Specific Compiler Directives
The following table lists package-specific compiler directives that can be inserted into source code.
Package-specific compiler directives
Directive
Purpose
{$IMPLICITBUILD OFF}
Prevents a package from being implicitly recompiled later. Use in .dpk files when
compiling packages that provide low-level functionality, that change infrequently
between builds, or whose source code will not be distributed.
{$G-}
 or 
{$IMPORTEDDATA OFF}
Disables creation of imported data references. This directive increases memory-access
efficiency, but prevents the unit where it occurs from referencing variables in other
packages.
{$WEAKPACKAGEUNIT ON}
Packages unit weakly.
{$DENYPACKAGEUNIT ON}
Prevents unit from being placed in a package.
188


{$DESIGNONLY ON}
Compiles the package for installation in the IDE. (Put in .dpk file.)
{$RUNONLY ON}
Compiles the package as runtime only. (Put in .dpk file.)
Including 
{$DENYPACKAGEUNIT ON}
 in source code prevents the unit file from being packaged. Including 
{$G-}
or 
{$IMPORTEDDATA OFF}
 may prevent a package from being used in the same application with other packages.
Other compiler directives may be included, if appropriate, in package source code.

Yüklə 0,84 Mb.

Dostları ilə paylaş:
1   ...   216   217   218   219   220   221   222   223   ...   294




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin