ADTF
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
adtf_base_deprecated.h
Go to the documentation of this file.
1
7#ifndef _ADTF_BASE_DEPRECATED_HEADER_
8#define _ADTF_BASE_DEPRECATED_HEADER_
9
24#ifdef ADTF3_NO_DEPRECATED_WARNING
25 #define ADTF3_DEPRECATED(_depr_message_)
26#else
27 #define ADTF3_DEPRECATED(_depr_message_) [[deprecated(_depr_message_)]]
28#endif
29
30#if defined(_MSC_VER)
31 #define ADTF3_IGNORE_DEPRECATION_WARNING_BEGIN \
32 _Pragma("warning( push )") \
33 _Pragma("warning( disable: 4996 )")
34#elif defined(__clang__)
35 #define ADTF3_IGNORE_DEPRECATION_WARNING_BEGIN \
36 _Pragma("clang diagnostic push") \
37 _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"")
38#else
39 #define ADTF3_IGNORE_DEPRECATION_WARNING_BEGIN \
40 _Pragma("GCC diagnostic push") \
41 _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
42#endif
43
44#if defined(_MSC_VER)
45 #define ADTF3_IGNORE_DEPRECATION_WARNING_END \
46 _Pragma("warning( pop )")
47#elif defined(__clang__)
48 #define ADTF3_IGNORE_DEPRECATION_WARNING_END \
49 _Pragma("clang diagnostic pop")
50#else
51 #define ADTF3_IGNORE_DEPRECATION_WARNING_END \
52 _Pragma("GCC diagnostic pop")
53#endif
54
55#endif // _ADTF_BASE_DEPRECATED_HEADER_