|
Ruby 3.4.7p58 (2025-10-08 revision 7a5688e2a27668e48f8d6ff4af5b2208b98a2f5e)
|
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().