|
Ruby 4.1.0dev (2026-11-18 revision bcf3b03b44ae598e3adb59d359cf32202091a318)
|
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().