 |
Blender V4.3
|
Go to the documentation of this file.
13# define ATTR_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
15# define ATTR_WARN_UNUSED_RESULT
23# define ATTR_NONNULL(args...) __attribute__((nonnull(args)))
25# define ATTR_NONNULL(...)
30# define ATTR_RETURNS_NONNULL __attribute__((returns_nonnull))
32# define ATTR_RETURNS_NONNULL
36#if defined(__GNUC__) || defined(__clang__)
37# define ATTR_NORETURN __attribute__((noreturn))
44# define ATTR_MALLOC __attribute__((malloc))
50#if defined(__GNUC__) && !defined(__clang__)
51# define ATTR_ALLOC_SIZE(args...) __attribute__((alloc_size(args)))
53# define ATTR_ALLOC_SIZE(...)
58# define ATTR_SENTINEL(arg_pos) __attribute__((sentinel(arg_pos)))
60# define ATTR_SENTINEL(arg_pos)
65# define ATTR_PRINTF_FORMAT(format_param, dots_param) \
66 __attribute__((format(printf, format_param, dots_param)))
68# define ATTR_PRINTF_FORMAT(format_param, dots_param)
72#ifndef ATTR_FALLTHROUGH
74# define ATTR_FALLTHROUGH __attribute__((fallthrough))
76# define ATTR_FALLTHROUGH ((void)0)
81#if defined(_WIN32) && !defined(FREE_WINDOWS)
82# define ATTR_ALIGN(x) __declspec(align(x))
84# define ATTR_ALIGN(x) __attribute__((aligned(x)))
89# define BLI_ALIGN_STRUCT __declspec(align(64))
91# define BLI_ALIGN_STRUCT