Drake
drake_deprecated.h
Go to the documentation of this file.
1 #pragma once
2 
7 #ifdef DRAKE_DOXYGEN_CXX
8 
33 #define DRAKE_DEPRECATED(message)
34 
35 #else // DRAKE_DOXYGEN_CXX
36 
37 /* C++14 introduces a standard way to mark deprecated declarations. Before
38 that we can use non-standard compiler hacks. */
39 /* Figure out the best form of deprecation for this compiler. */
40 #if __cplusplus >= 201402L
41  /* C++14 */
42  #define DRAKE_DEPRECATED(MSG) [[deprecated("\nDRAKE DEPRECATED: " MSG)]]
43 #else /* gcc or clang */
44  #define DRAKE_DEPRECATED(MSG) \
45  __attribute__((deprecated("\nDRAKE DEPRECATED: " MSG)))
46 #endif
47 
48 #endif // DRAKE_DOXYGEN_CXX