You copied the Doc URL to your clipboard.

__declspec attributes

The __declspec keyword enables you to specify special attributes of objects and functions.

The __declspec keyword must prefix the declaration specification. For example:

__declspec(noreturn) void overflow(void);

The available __declspec attributes are as follows:

  • __declspec(noinline)
  • __declspec(noreturn)
  • __declspec(nothrow)

__declspec attributes are storage class modifiers. They do not affect the type of a function or variable.