dune-common  2.2.1
deprecated.hh
Go to the documentation of this file.
1 #ifndef DUNE_DEPRECATED_HH
2 #define DUNE_DEPRECATED_HH
3 
9 
10 
11 #if defined(DOXYGEN) || !defined(HAS_ATTRIBUTE_DEPRECATED)
12 
13 
81 #define DUNE_DEPRECATED
82 #else // defined(HAS_ATTRIBUTE_DEPRECATED)
83 #define DUNE_DEPRECATED __attribute__((deprecated))
84 #endif
85 
86 #if defined(DOXYGEN) || !defined(HAS_ATTRIBUTE_DEPRECATED_MSG)
87 
88 
165 #define DUNE_DEPRECATED_MSG(text) DUNE_DEPRECATED
166 #else // defined(HAS_ATTRIBUTE_DEPRECATED_MSG)
167 #define DUNE_DEPRECATED_MSG(text) __attribute__((deprecated(#text)))
168 #endif
169 
171 
172 #endif