RAD Studio
ContentsIndex
PreviousUpNext
_export, __export

Category 

Modifiers, Keyword extensions 

Form 1  

class _export <class name>

Form 2

return_type _export <function name>

Form 3

data_type _export <data name>

Description 

These modifiers are used to export classes, functions, and data. 

The linker enters functions flagged with _export or __export into an export table for the module. 

Using _export or __export eliminates the need for an EXPORTS section in your module definition file. 

Functions that are not modified with _export or __export receive abbreviated prolog and epilog code, resulting in a smaller object file and slightly faster execution.

Note: If you use _export
or __export to export a function, that function will be exported by name rather than by ordinal (ordinal is usually more efficient). If you want to change various attributes from the default, you'll need a module definition file.

The export Keyword

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!