Monday, April 2, 2012

Use `DEPRECATED_ATTRIBUTE` to clean up your code

What is DEPRECATED_ATTRIBUTE

Actually, DEPRECATED_ATTRIBUTE is a macro, it is defined as:

 /*  * only certain compilers support __attribute__((deprecated))  */ #if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))     #define DEPRECATED_ATTRIBUTE __attribute__((deprecated)) #else     #define DEPRECATED_ATTRIBUTE 

No comments:

Post a Comment