 |
Blender
V3.3
|
Go to the documentation of this file.
12 # define ATTR_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
14 # define ATTR_WARN_UNUSED_RESULT
22 # define ATTR_NONNULL(args...) __attribute__((nonnull(args)))
24 # define ATTR_NONNULL(...)
28 #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409
29 # define ATTR_RETURNS_NONNULL __attribute__((returns_nonnull))
31 # define ATTR_RETURNS_NONNULL
35 #if defined(__GNUC__) || defined(__clang__)
36 # define ATTR_NORETURN __attribute__((noreturn))
38 # define ATTR_NORETURN
42 #if (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 403))
43 # define ATTR_MALLOC __attribute__((malloc))
49 #if (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 403))
50 # define ATTR_ALLOC_SIZE(args...) __attribute__((alloc_size(args)))
52 # define ATTR_ALLOC_SIZE(...)
57 # define ATTR_SENTINEL(arg_pos) __attribute__((sentinel(arg_pos)))
59 # define ATTR_SENTINEL(arg_pos)
64 # define ATTR_PRINTF_FORMAT(format_param, dots_param) \
65 __attribute__((format(printf, format_param, dots_param)))
67 # define ATTR_PRINTF_FORMAT(format_param, dots_param)
71 #ifndef ATTR_FALLTHROUGH
72 # if defined(__GNUC__) && (__GNUC__ >= 7)
73 # define ATTR_FALLTHROUGH __attribute__((fallthrough))
75 # define ATTR_FALLTHROUGH ((void)0)
80 #if defined(_WIN32) && !defined(FREE_WINDOWS)
81 # define ATTR_ALIGN(x) __declspec(align(x))
83 # define ATTR_ALIGN(x) __attribute__((aligned(x)))
88 # define ALIGN_STRUCT __declspec(align(64))