base
Deprecated.hpp
Go to the documentation of this file.
1 #ifndef BASE_TYPES_DEPRECATED
2 #ifdef __GNUC__
3  #define BASE_TYPES_DEPRECATED __attribute__ ((deprecated))
4 #else
5  #define BASE_TYPES_DEPRECATED
6 #endif
7 #endif
8 
9 #ifndef BASE_TYPES_DEPRECATED_SUPPRESS_START
10 #ifdef __GNUC__
11  #define BASE_TYPES_DEPRECATED_SUPPRESS_START _Pragma("GCC diagnostic push") \
12  _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
13 #else
14  #define BASE_TYPES_DEPRECATED_SUPPRESS_START
15 #endif
16 #endif
17 
18 #ifndef BASE_TYPES_DEPRECATED_SUPPRESS_STOP
19 #ifdef __GNUC__
20  #define BASE_TYPES_DEPRECATED_SUPPRESS_STOP _Pragma("GCC diagnostic pop")
21 #else
22  #define BASE_TYPES_DEPRECATED_SUPPRESS_STOP
23 #endif
24 #endif