1 #ifndef __has_attribute
2 __has_attribute()??? Quesako
?
3 #define __has_attribute(x) 0
5 "has __has_attribute(), yeah!"
8 123 __has_attribute(nothinx
) def
10 #if __has_attribute(nothinx)
11 #error "not a attribute!"
15 && __has_attribute(packed) \
16 && __has_attribute(aligned) \
17 && __has_attribute(const) \
18 && __has_attribute(pure) \
19 && __has_attribute(noreturn) \
20 && __has_attribute(designated_init) \
21 && __has_attribute(transparent_union) \
27 && __has_attribute(fastcall) \
33 && __has_attribute(nocast) \
34 && __has_attribute(noderef) \
35 && __has_attribute(safe) \
36 && __has_attribute(force) \
37 && __has_attribute(bitwise) \
38 && __has_attribute(address_space) \
39 && __has_attribute(context) \
45 * check-name: has-attribute
46 * check-command: sparse -E $file
50 "has __has_attribute(), yeah!"