The __declspec keyword enables you to specify special attributes
of objects and functions. For example, you can use the __declspec keyword
to declare imported or exported functions and variables, or to declare Thread
Local Storage (TLS) objects.
The __declspec keyword must prefix the
declaration specification. For example:
__declspec(noreturn) void overflow(void);
__declspec(thread) int i;
Table 9 summarizes
the available __declspec attributes. __declspec attributes
are storage class modifiers. They do not affect the type of a function
or variable.
Table 9. __declspec attributes supported by the compiler and their
equivalents
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.