_export, __export (C++)
Go Up to Keywords, Alphabetical Listing Index
Category
Modifiers (C++), 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 will need a module definition file.
Note: The __export form is the only one supported by Clang-enhanced C++ compilers.