|
Ruby 3.4.8p72 (2025-12-17 revision 995b59f66677d44767ce9faac6957e5543617ff9)
|
Defines RBIMPL_ATTR_NODISCARD. More...
#include "ruby/internal/has/attribute.h"#include "ruby/internal/has/c_attribute.h"#include "ruby/internal/has/cpp_attribute.h"Go to the source code of this file.
Macros | |
| #define | RBIMPL_ATTR_NODISCARD() |
| Wraps (or simulates) [[nodiscard]]. | |
Defines RBIMPL_ATTR_NODISCARD.
Definition in file nodiscard.h.
| #define RBIMPL_ATTR_NODISCARD | ( | ) |
Wraps (or simulates) [[nodiscard]].
In C++ (at least since C++20) a nodiscard attribute can have a message why the result shall not be ignored. However GCC attribute and SAL annotation cannot take them.
Definition at line 42 of file nodiscard.h.
Referenced by ruby_qsort().