2.4 __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.

Non-ConfidentialPDF file icon PDF versionDUI0774J
Copyright © 2014–2017, 2019 Arm Limited or its affiliates. All rights reserved.