TC __has_cpp_attribute, , __has_cpp_attribute, .
#if defined(__has_cpp_attribute)
# define MY_HAS_CPP_ATTRIBUTE(attr) __has_cpp_attribute(attr)
#else
# define MY_HAS_CPP_ATTRIBUTE(attr) (0)
#endif
#if MY_HAS_CPP_ATTRIBUTE(attr)
# define MY_DEPRECATED [[deprecated(msg)]]
#else
# define MY_DEPRECATED
#endif
, , __has_cpp_attribute. , defined(__has_cpp_attribute) defined(__has_cpp_attribute) , , defined(__has_cpp_attribute) , . __has_cpp_attribute .
, , __has_cpp_attribute, , , ; HEDLEY_DEPRECATED Hedley. GCC 4. 5+, ICC 13+, armcc 4. 1+ TI 7. 3+ , MSVC 13. 10+ Pelles 6. 50+ declspec IAR , , , , , , .