dune-common  2.3.0
deprecated.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 sts=2:
3 #ifndef DUNE_DEPRECATED_HH
4 #define DUNE_DEPRECATED_HH
5 
11 
12 
13 #if defined(DOXYGEN) || !defined(HAS_ATTRIBUTE_DEPRECATED)
14 
15 
84 #define DUNE_DEPRECATED
85 #else // defined(HAS_ATTRIBUTE_DEPRECATED)
86 #define DUNE_DEPRECATED __attribute__((deprecated))
87 #endif
88 
89 #if defined(DOXYGEN) || !defined(HAS_ATTRIBUTE_DEPRECATED_MSG)
90 
91 
169 #define DUNE_DEPRECATED_MSG(text) DUNE_DEPRECATED
170 #else // defined(HAS_ATTRIBUTE_DEPRECATED_MSG)
171 #define DUNE_DEPRECATED_MSG(text) __attribute__((deprecated(# text)))
172 #endif
173 
175 
176 #endif