Loading...
Searching...
No Matches
Go to the documentation of this file.
33#ifndef DART_COMMON_DEPRECATED_HPP_
34#define DART_COMMON_DEPRECATED_HPP_
36#include "dart/config.hpp"
44#if defined(__GNUC__) || defined(__clang__)
45 #define DART_DEPRECATED(version) __attribute__ ((deprecated))
46 #define DART_FORCEINLINE __attribute__((always_inline))
47#elif defined(_MSC_VER)
48 #define DART_DEPRECATED(version) __declspec(deprecated)
49 #define DART_FORCEINLINE _forceinline
51 #define DART_DEPRECATED(version) ()
52 #define DART_FORCEINLINE
68#if defined (DART_COMPILER_GCC)
70 #define DART_SUPPRESS_DEPRECATED_BEGIN \
71 _Pragma("GCC diagnostic push") \
72 _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
74 #define DART_SUPPRESS_DEPRECATED_END \
75 _Pragma("GCC diagnostic pop")
77#elif defined (DART_COMPILER_CLANG)
79 #define DART_SUPPRESS_DEPRECATED_BEGIN \
80 _Pragma("clang diagnostic push") \
81 _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"")
83 #define DART_SUPPRESS_DEPRECATED_END \
84 _Pragma("clang diagnostic pop")
86#elif defined (DART_COMPILER_MSVC)
88 #define DART_SUPPRESS_DEPRECATED_BEGIN \
89 __pragma(warning(push)) \
90 __pragma(warning(disable:4996))
92 #define DART_SUPPRESS_DEPRECATED_END \
93 __pragma(warning(pop))