PulseAudio 17.0
|
GCC attribute macros. More...
Go to the source code of this file.
Macros | |
#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 function, variable or 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. | |
#define | PA_LIKELY(x) |
#define | PA_UNLIKELY(x) |
#define | PA_CLAMP(x, low, high) |
#define | PA_CLAMP_UNLIKELY(x, low, high) |
GCC attribute macros.
#define PA_CLAMP | ( | x, | |
low, | |||
high ) |
#define PA_CLAMP_UNLIKELY | ( | x, | |
low, | |||
high ) |
#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_CONST |
This function's return value depends only the arguments list (stricter version of PA_GCC_PURE)
Referenced by pa_direction_valid(), pa_encoding_to_string(), pa_sw_volume_divide(), pa_sw_volume_from_dB(), pa_sw_volume_from_linear(), pa_sw_volume_multiply(), pa_sw_volume_to_dB(), and pa_sw_volume_to_linear().
#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.
Referenced by pa_xmalloc(), pa_xmalloc0(), pa_xmemdup(), pa_xstrdup(), and pa_xstrndup().
#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, | |
b ) |
If we're in GNU C, use some magic for detecting invalid format strings.
Referenced by pa_proplist_setf().
#define PA_GCC_PURE |
This function's return value depends only the arguments list and global state.
Referenced by pa_ascii_valid(), pa_bytes_per_second(), pa_bytes_to_usec(), pa_channel_map_can_balance(), pa_channel_map_can_fade(), pa_channel_map_can_lfe_balance(), pa_channel_map_compatible(), pa_channel_map_equal(), pa_channel_map_has_position(), pa_channel_map_mask(), pa_channel_map_superset(), pa_channel_map_to_name(), pa_channel_map_to_pretty_name(), pa_channel_map_valid(), pa_channel_position_from_string(), pa_channel_position_to_string(), pa_channels_valid(), pa_cvolume_avg(), pa_cvolume_avg_mask(), pa_cvolume_channels_equal_to(), pa_cvolume_compatible(), pa_cvolume_compatible_with_channel_map(), pa_cvolume_equal(), pa_cvolume_get_balance(), pa_cvolume_get_fade(), pa_cvolume_get_lfe_balance(), pa_cvolume_get_position(), pa_cvolume_max(), pa_cvolume_max_mask(), pa_cvolume_min(), pa_cvolume_min_mask(), pa_cvolume_valid(), pa_frame_size(), pa_parse_sample_format(), pa_sample_format_is_be(), pa_sample_format_is_le(), pa_sample_format_to_string(), pa_sample_format_valid(), pa_sample_rate_valid(), pa_sample_size(), pa_sample_size_of_format(), pa_sample_spec_equal(), pa_sample_spec_valid(), pa_timeval_cmp(), pa_timeval_diff(), pa_usec_to_bytes(), and pa_utf8_valid().
#define PA_GCC_SENTINEL |
Macro for usage of GCC's sentinel compilation warnings.
#define PA_GCC_UNUSED |
Macro for not used function, variable or parameter.
#define PA_LIKELY | ( | x | ) |
#define PA_UNLIKELY | ( | x | ) |