|
Ruby 3.4.6p54 (2025-09-16 revision dbd83256b1cec76c69756ecb8758b9e1079833de)
|
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().