RAD Studio |  |

Package-specific Compiler Directives
See Also
Collapse All

The following table lists package-specific compiler directives that you can insert into your source code.

Package-specific compiler directives

Directive | Purpose
#pragma package(smart_init) | Assures that packaged units are initialized in the order determined by their dependencies. (Included by default in package source file.)
#pragma package(smart_init, weak) | Packages unit "weakly." See (Put directive in unit source file.)

Note: Including {$DENYPACKAGEUNIT ON} in your 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. Packages compiled with the {$DESIGNONLY ON} directive should not ordinarily be used in applications, since they contain extra code required by the IDE. Other compiler directives may be included, if appropriate, in package source code. See Compiler Directives for information on compiler directives not discussed here.
See Package-specific Compiler Directives.

Refer to Creating Packages and DLLs for additional directives that can be used in all libraries.

See Also

Working with Packages and Components: Overview

Compiling Packages

Creating and Editing Packages

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!