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 _Pragma("GCC diagnostic pop")
76#elif defined(DART_COMPILER_CLANG)
78 #define DART_SUPPRESS_DEPRECATED_BEGIN \
79 _Pragma("clang diagnostic push") \
80 _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"")
82 #define DART_SUPPRESS_DEPRECATED_END _Pragma("clang diagnostic pop")
84#elif defined(DART_COMPILER_MSVC)
86 #define DART_SUPPRESS_DEPRECATED_BEGIN \
87 __pragma(warning(push)) __pragma(warning(disable : 4996))
89 #define DART_SUPPRESS_DEPRECATED_END __pragma(warning(pop))