| 1 | #cxx . . $ `<file>/src/attributes.h`/ifndef __ATTRIBUTES_H__ |
| 2 | #define __ATTRIBUTES_H__cxx . . $ `src/attributes.h:2:9`! |
| 3 | |
| 4 | #include "attr_config.h"cxx . . $ `<file>/src/attr_config.h`/ |
| 5 | |
| 6 | #if defined(CFG_HAVE_ATTRIBUTEScxx . . $ `src/attr_config.h:5:10`!) && 1 == CFG_HAVE_ATTRIBUTEScxx . . $ `src/attr_config.h:5:10`! |
| 7 | /* nothing */ |
| 8 | #else |
| 9 | # define __attribute__(x) \ |
| 10 | /* nothing, e.g. for sys/tree.h */ |
| 11 | #endif /* CFG_HAVE_ATTRIBUTES */ |
| 12 | |
| 13 | #if defined(CFG_ATTRIBUTE_UNUSEDcxx . . $ `src/attr_config.h:9:10`!) && 1 == CFG_ATTRIBUTE_UNUSEDcxx . . $ `src/attr_config.h:9:10`! |
| 14 | # define ATTRIBUTE_UNUSEDcxx . . $ `src/attributes.h:14:10`!() \ |
| 15 | __attribute__((unused)) |
| 16 | #else |
| 17 | # define ATTRIBUTE_UNUSED() \ |
| 18 | /* nothing */ |
| 19 | #endif /* CFG_ATTRIBUTE_UNUSED */ |
| 20 | |
| 21 | #if defined(CFG_ATTRIBUTE_FORMATcxx . . $ `src/attr_config.h:13:10`!) && 1 == CFG_ATTRIBUTE_FORMATcxx . . $ `src/attr_config.h:13:10`! |
| 22 | # define ATTRIBUTE_FORMATcxx . . $ `src/attributes.h:22:10`!(t, n, m) \ |
| 23 | __attribute__((__format__(t, (n), (m)))) |
| 24 | #else |
| 25 | # define ATTRIBUTE_FORMAT(t, n, m) \ |
| 26 | /* nothing */ |
| 27 | #endif /* CFG_ATTRIBUTE_FORMAT */ |
| 28 | |
| 29 | #if defined(CFG_ATTRIBUTE_NONNULLcxx . . $ `src/attr_config.h:17:10`!) && 1 == CFG_ATTRIBUTE_NONNULLcxx . . $ `src/attr_config.h:17:10`! |
| 30 | # define ATTRIBUTE_NONNULLcxx . . $ `src/attributes.h:30:10`!(n) \ |
| 31 | __attribute__((__nonnull__(n))) |
| 32 | # define ATTRIBUTE_NONNULL_2cxx . . $ `src/attributes.h:32:10`!(n, m) \ |
| 33 | __attribute__((__nonnull__(n, m))) |
| 34 | # define ATTRIBUTE_NONNULL_3cxx . . $ `src/attributes.h:34:10`!(n, m, o) \ |
| 35 | __attribute__((__nonnull__(n, m, o))) |
| 36 | #else |
| 37 | # define ATTRIBUTE_NONNULL(n) \ |
| 38 | /* nothing */ |
| 39 | # define ATTRIBUTE_NONNULL_2(n, m) \ |
| 40 | /* nothing */ |
| 41 | # define ATTRIBUTE_NONNULL_3(n, m, o) \ |
| 42 | /* nothing */ |
| 43 | #endif /* CFG_ATTRIBUTE_NONNULL */ |
| 44 | |
| 45 | #endif /* __ATTRIBUTES_H__ */ |