Next: Type Attributes, Previous: Function Attributes, Up: C Extensions [Contents][Index]
The keyword __attribute__
allows you to specify special properties
of variables, function parameters, or structure, union, and, in C++, class
members. This __attribute__
keyword is followed by an attribute
specification enclosed in double parentheses. Some attributes are currently
defined generically for variables. Other attributes are defined for
variables on particular target systems. Other attributes are available
for functions (see Function Attributes), labels (see Label Attributes),
enumerators (see Enumerator Attributes), statements
(see Statement Attributes), and for types (see Type Attributes).
Other front ends might define more attributes
(see Extensions to the C++ Language).
See Attribute Syntax, for details of the exact syntax for using attributes.
Next: Type Attributes, Previous: Function Attributes, Up: C Extensions [Contents][Index]