|
Defines |
|
#define | ATTR_always_inline |
| | triggers inlining even when no optimization is specified
|
|
#define | ATTR_pure |
| | compiler hint that the function has no side effects and return value depends only on arguments and non-volatile globals
|
|
#define | ATTR_const |
| | like ATTR_pure, compiler hint that the function has no side effects and return value depends only on arguments -- unlike ATTR_pure, cannot access globals or dereference pointer arguments.
|
|
#define | ATTR_noreturn |
| | indicates that the function is 'fatal' and will not return; however, can still throw an exception!
|
|
#define | ATTR_malloc |
| | compiler hint that a non-NULL pointer return value is guaranteed to be a unique address (e.g. malloc)
|
|
#define | ATTR_must_check |
| | indicates that a warning should be given if caller doesn't use the return value, e.g. newly allocated memory regions
|
|
#define | ATTR_deprecated |
| | triggers a warning if the function/variable is referenced by any code which is not itself marked with ATTR_deprecated
|
|
#define | ATTR_used |
| | forces the code for the function to be emitted even if nothing appears to reference it -- handy when called by inline assembly
|
|
#define | ATTR_unused |
| | indicates no warning should be given if the specified value goes unused, e.g. fulfilling an interface which requires superfluous arguments
|
|
#define | ATTR_packed |
| | requests that members of a struct or union be layed out a densely as possible to minimize memory usage; applied to enums requests smallest storage type be used
|
|
#define | ATTR_likely(x) (x) |
| | should be passed a value within an 'if' statement to hint that the value is likely to be 'true' (i.e. non-zero)
|
|
#define | ATTR_unlikely(x) (x) |
| | should be passed a value within an 'if' statement to hint that the value is unlikely to be 'true' (i.e. likely to be 'false' or 0)
|
|
#define | EXPORT_SYMBOL |
|
#define | LOCAL_SYMBOL |