dune-common  2.2.0
deprecated.hh
Go to the documentation of this file.
00001 #ifndef DUNE_DEPRECATED_HH
00002 #define DUNE_DEPRECATED_HH
00003 
00009 
00010 
00011 #if defined(DOXYGEN) || !defined(HAS_ATTRIBUTE_DEPRECATED)
00012 
00013 
00081 #define DUNE_DEPRECATED
00082 #else // defined(HAS_ATTRIBUTE_DEPRECATED)
00083 #define DUNE_DEPRECATED __attribute__((deprecated))
00084 #endif
00085 
00086 #if defined(DOXYGEN) || !defined(HAS_ATTRIBUTE_DEPRECATED_MSG)
00087 
00088 
00165 #define DUNE_DEPRECATED_MSG(text) DUNE_DEPRECATED
00166 #else // defined(HAS_ATTRIBUTE_DEPRECATED_MSG)
00167 #define DUNE_DEPRECATED_MSG(text) __attribute__((deprecated(text)))
00168 #endif
00169 
00171 
00172 #endif