1#ifndef RBIMPL_ATTR_DEPRECATED_H
2#define RBIMPL_ATTR_DEPRECATED_H
31#if RBIMPL_HAS_EXTENSION(attribute_deprecated_with_message)
32# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
34#elif defined(__cplusplus) && RBIMPL_COMPILER_SINCE(GCC, 10, 1, 0)
36# define RBIMPL_ATTR_DEPRECATED(msg)
38#elif RBIMPL_COMPILER_SINCE(GCC, 4, 5, 0)
39# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
41#elif RBIMPL_COMPILER_SINCE(Intel, 13, 0, 0)
42# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
44#elif RBIMPL_HAS_ATTRIBUTE(deprecated)
45# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__))
47#elif RBIMPL_COMPILER_SINCE(MSVC, 14, 0, 0)
48# define RBIMPL_ATTR_DEPRECATED(msg) __declspec(deprecated msg)
50#elif RBIMPL_HAS_DECLSPEC_ATTRIBUTE(deprecated)
51# define RBIMPL_ATTR_DEPRECATED(msg) __declspec(deprecated)
53#elif RBIMPL_HAS_CPP_ATTRIBUTE(deprecated)
54# define RBIMPL_ATTR_DEPRECATED(msg) [[deprecated msg]]
56#elif RBIMPL_HAS_C_ATTRIBUTE(deprecated)
57# define RBIMPL_ATTR_DEPRECATED(msg) [[deprecated msg]]
60# define RBIMPL_ATTR_DEPRECATED(msg)
Defines RBIMPL_HAS_ATTRIBUTE.
Defines RBIMPL_HAS_C_ATTRIBUTE.
Defines RBIMPL_COMPILER_SINCE.
Defines RBIMPL_HAS_CPP_ATTRIBUTE.
Defines RBIMPL_HAS_DECLSPEC_ATTRIBUTE.
Defines RBIMPL_HAS_EXTENSION.