RAD Studio |  |

_export, __export

Category

Modifiers, Keyword extensions

Form 1

Copy Code

    class _export <class name>

Form 2

Copy Code

    return_type _export <function name>

Form 3

Copy Code

    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.

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