 |
Blender
V2.93
|
Go to the documentation of this file.
28 # define ATTR_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
30 # define ATTR_WARN_UNUSED_RESULT
38 # define ATTR_NONNULL(args...) __attribute__((nonnull(args)))
40 # define ATTR_NONNULL(...)
44 #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409
45 # define ATTR_RETURNS_NONNULL __attribute__((returns_nonnull))
47 # define ATTR_RETURNS_NONNULL
51 #if defined(__GNUC__) || defined(__clang__)
52 # define ATTR_NORETURN __attribute__((noreturn))
54 # define ATTR_NORETURN
58 #if (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 403))
59 # define ATTR_MALLOC __attribute__((malloc))
65 #if (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 403))
66 # define ATTR_ALLOC_SIZE(args...) __attribute__((alloc_size(args)))
68 # define ATTR_ALLOC_SIZE(...)
73 # define ATTR_SENTINEL(arg_pos) __attribute__((sentinel(arg_pos)))
75 # define ATTR_SENTINEL(arg_pos)
80 # define ATTR_PRINTF_FORMAT(format_param, dots_param) \
81 __attribute__((format(printf, format_param, dots_param)))
83 # define ATTR_PRINTF_FORMAT(format_param, dots_param)
87 #ifndef ATTR_FALLTHROUGH
88 # if defined(__GNUC__) && (__GNUC__ >= 7)
89 # define ATTR_FALLTHROUGH __attribute__((fallthrough))
91 # define ATTR_FALLTHROUGH ((void)0)
96 #if defined(_WIN32) && !defined(FREE_WINDOWS)
97 # define ATTR_ALIGN(x) __declspec(align(x))
99 # define ATTR_ALIGN(x) __attribute__((aligned(x)))