Go to the documentation of this file.
11 #ifndef __SYS_DEPRECATED_H_INCLUDED__
12 #define __SYS_DEPRECATED_H_INCLUDED__
19 # if SYS_IS_GCC_GE(4, 6) || defined(__clang__)
20 # define SYS_DEPRECATED(__V__) \
21 __attribute__ ((deprecated("Deprecated since version " #__V__)))
22 # define SYS_DEPRECATED_REPLACE(__V__, __R__) \
23 __attribute__ ((deprecated("Deprecated since version " \
24 SYS_TO_STRING(__V__) ". Use '" \
25 SYS_TO_STRING(__R__) "' instead.")))
27 # define SYS_DEPRECATED(__V__) __attribute__ ((deprecated))
28 # define SYS_DEPRECATED_REPLACE(__V__, __R__) __attribute__ ((deprecated))
30 #elif defined(_MSC_VER)
31 # define SYS_DEPRECATED(__V__) \
32 __declspec(deprecated("Deprecated since version " #__V__))
33 # define SYS_DEPRECATED_REPLACE(__V__, __R__) \
34 __declspec(deprecated("Deprecated since version " \
35 SYS_TO_STRING(__V__) ". Use " \
36 SYS_TO_STRING(__R__) " instead."))
38 # define SYS_DEPRECATED(__V__)
39 # define SYS_DEPRECATED_REPLACE(__V__, __R__)
43 #if !defined(IGNORE_HDK_DEPRECATIONS)
44 # define SYS_DEPRECATED_HDK(__V__) SYS_DEPRECATED(__V__)
45 # define SYS_DEPRECATED_HDK_REPLACE(__V__,__R__) \
46 SYS_DEPRECATED_REPLACE(__V__, __R__)
48 # define SYS_DEPRECATED_HDK(__V__)
49 # define SYS_DEPRECATED_HDK_REPLACE(__V__, __R__)
54 #if defined(_MSC_VER) || SYS_IS_GCC_GE(4, 6) || defined(__clang__)
55 #define SYS_DEPRECATED_PUSH_DISABLE() SYS_PRAGMA_PUSH_WARN() \
56 SYS_PRAGMA_DISABLE_DEPRECATED() \
58 #define SYS_DEPRECATED_POP_DISABLE() SYS_PRAGMA_POP_WARN()
62 #define SYS_DEPRECATED_PUSH_DISABLE() \
63 SYS_PRAGMA(GCC diagnostic ignored "-Wdeprecated-declarations")
64 #define SYS_DEPRECATED_POP_DISABLE() \
65 SYS_PRAGMA(GCC diagnostic warning "-Wdeprecated-declarations")
68 #endif // __SYS_DEPRECATED_H_INCLUDED__