|
Ruby 4.1.0dev (2026-03-01 revision d68e4be1873e364c5ee24ed112bce4bc86e3a406)
|
Defines RBIMPL_ATTR_DEPRECATED. More...
#include "ruby/internal/compiler_since.h"#include "ruby/internal/has/attribute.h"#include "ruby/internal/has/c_attribute.h"#include "ruby/internal/has/cpp_attribute.h"#include "ruby/internal/has/declspec_attribute.h"#include "ruby/internal/has/extension.h"

Go to the source code of this file.
Macros | |
| #define | RBIMPL_ATTR_DEPRECATED(msg) /* void */ |
Wraps (or simulates) [[deprecated]] | |
| #define | RBIMPL_ATTR_DEPRECATED_EXT(msg) RBIMPL_ATTR_DEPRECATED(msg) |
| This is when a function is used internally (for backwards compatibility etc.), but extension libraries must consider it deprecated. | |
| #define | RBIMPL_ATTR_DEPRECATED_SINCE(ver) RBIMPL_ATTR_DEPRECATED(("since " #ver)) |
| #define | RBIMPL_ATTR_DEPRECATED_INTERNAL(ver) RBIMPL_ATTR_DEPRECATED(("since "#ver", also internal")) |
| #define | RBIMPL_ATTR_DEPRECATED_INTERNAL_ONLY() RBIMPL_ATTR_DEPRECATED(("only for internal use")) |
Defines RBIMPL_ATTR_DEPRECATED.
RBIMPL or rbimpl are implementation details. Don't take them as canon. They could rapidly appear then vanish. The name (path) of this header file is also an implementation detail. Do not expect it to persist at the place it is now. Developers are free to move it anywhere anytime at will. __VA_ARGS__ is always available. We assume C99 for ruby itself but we don't assume languages of extension libraries. They could be written in C++98. Definition in file deprecated.h.
| #define RBIMPL_ATTR_DEPRECATED | ( | msg | ) | /* void */ |
Wraps (or simulates) [[deprecated]]
Definition at line 64 of file deprecated.h.
| #define RBIMPL_ATTR_DEPRECATED_EXT | ( | msg | ) | RBIMPL_ATTR_DEPRECATED(msg) |
This is when a function is used internally (for backwards compatibility etc.), but extension libraries must consider it deprecated.
Definition at line 72 of file deprecated.h.
| #define RBIMPL_ATTR_DEPRECATED_INTERNAL | ( | ver | ) | RBIMPL_ATTR_DEPRECATED(("since "#ver", also internal")) |
Definition at line 77 of file deprecated.h.
| #define RBIMPL_ATTR_DEPRECATED_INTERNAL_ONLY | ( | ) | RBIMPL_ATTR_DEPRECATED(("only for internal use")) |
Definition at line 79 of file deprecated.h.
| #define RBIMPL_ATTR_DEPRECATED_SINCE | ( | ver | ) | RBIMPL_ATTR_DEPRECATED(("since " #ver)) |
Definition at line 75 of file deprecated.h.