GCC attribute macros
QNX SDP8.0QNX Helpers Developer's GuideAPIDeveloper
Convenience macros that make it easier to use some of the options provided by the GCC keyword attribute
.
Description:
The tasks these macros perform include managing attribute support for the different GCC versions and specifying whether the code to compile uses GCC (which is required to use attribute
).
If the GCC version doesn't support attribute
, these macros revert to being empty.
For more information about specific attributes, go to https://gcc.gnu.org/onlinedocs/.
Definitions:
#define QH_ATTR_FUNC_FORMAT_PRINTF(STRING_INDEX, FIRST_TO_CHECK)
#define QH_ATTR_FUNC_CONSTRUCTOR_PRIORITY(PRIORITY)
#define QH_ATTR_FUNC_DESTRUCTOR_PRIORITY(PRIORITY)
#define QH_ATTR_FUNC_NONNULL_PARAMS(...)
#define QH_ATTR_FUNC_COLD
#define QH_ATTR_FUNC_MALLOC
#define QH_ATTR_FUNC_VISIBILITY(VISIBILITY)
#define QH_ATTR_FUNC_DEPRECATED(MSG)
#define QH_ATTR_ENUM_DEPRECATED(MSG)
#define QH_ATTR_VAR_VISIBILITY(VISIBILITY)
Page updated: