Wed Jan 8 2020 09:49:46
Asterisk developer's documentation
Go to the documentation of this file.
23 #ifndef _ASTERISK_COMPILER_H
24 #define _ASTERISK_COMPILER_H
26 #ifdef HAVE_ATTRIBUTE_always_inline
27 #define force_inline __attribute__((always_inline)) inline
29 #define force_inline inline
32 #ifdef HAVE_ATTRIBUTE_pure
33 #define attribute_pure __attribute__((pure))
35 #define attribute_pure
38 #ifdef HAVE_ATTRIBUTE_const
39 #define attribute_const __attribute__((const))
41 #define attribute_const
44 #ifdef HAVE_ATTRIBUTE_deprecated
45 #define attribute_deprecated __attribute__((deprecated))
47 #define attribute_deprecated
50 #ifdef HAVE_ATTRIBUTE_unused
51 #define attribute_unused __attribute__((unused))
53 #define attribute_unused
56 #ifdef HAVE_ATTRIBUTE_malloc
57 #define attribute_malloc __attribute__((malloc))
59 #define attribute_malloc
62 #ifdef HAVE_ATTRIBUTE_sentinel
63 #define attribute_sentinel __attribute__((sentinel))
65 #define attribute_sentinel
68 #ifdef HAVE_ATTRIBUTE_warn_unused_result
69 #define attribute_warn_unused_result __attribute__((warn_unused_result))
71 #define attribute_warn_unused_result
75 #define SENTINEL ((char *)NULL)