Defines

gccmacro.h File Reference

GCC attribute macros. More...

Go to the source code of this file.

Defines

#define PA_GCC_PRINTF_ATTR(a, b)
 If we're in GNU C, use some magic for detecting invalid format strings.
#define PA_GCC_SENTINEL
 Macro for usage of GCC's sentinel compilation warnings.
#define PA_GCC_NORETURN
 Macro for no-return functions.
#define PA_GCC_UNUSED
 Macro for not used parameter.
#define PA_GCC_DESTRUCTOR
 Call this function when process terminates.
#define PA_GCC_PURE
 This function's return value depends only the arguments list and global state.
#define PA_GCC_CONST
 This function's return value depends only the arguments list (stricter version of PA_GCC_PURE)
#define PA_GCC_DEPRECATED
 This function is deprecated.
#define PA_GCC_PACKED
 Structure shall be packed in memory.
#define PA_GCC_ALLOC_SIZE(x)
 Macro for usage of GCC's alloc_size attribute.
#define PA_GCC_ALLOC_SIZE2(x, y)
 Macro for usage of GCC's alloc_size attribute.
#define PA_GCC_MALLOC
 Macro for usage of GCC's malloc attribute.

Detailed Description

GCC attribute macros.


Define Documentation

#define PA_GCC_ALLOC_SIZE (   x )

Macro for usage of GCC's alloc_size attribute.

#define PA_GCC_ALLOC_SIZE2 (   x,
 
)

Macro for usage of GCC's alloc_size attribute.

#define PA_GCC_CONST

This function's return value depends only the arguments list (stricter version of PA_GCC_PURE)

#define PA_GCC_DEPRECATED

This function is deprecated.

#define PA_GCC_DESTRUCTOR

Call this function when process terminates.

#define PA_GCC_MALLOC

Macro for usage of GCC's malloc attribute.

#define PA_GCC_NORETURN

Macro for no-return functions.

#define PA_GCC_PACKED

Structure shall be packed in memory.

#define PA_GCC_PRINTF_ATTR (   a,
 
)

If we're in GNU C, use some magic for detecting invalid format strings.

#define PA_GCC_PURE

This function's return value depends only the arguments list and global state.

#define PA_GCC_SENTINEL

Macro for usage of GCC's sentinel compilation warnings.

#define PA_GCC_UNUSED

Macro for not used parameter.