2 ms·
A similar concept is used widely in glibc under the name “__wur” (shorthand for __attribute__((warn_unused_result))). https://github.com/bminor/glibc/search?q=
by loeg 4y ago
A similar concept is used widely in glibc under the name “__wur” (shorthand for __attribute__((warn_unused_result))).
https://github.com/bminor/glibc/search?q=__wur&type= https://github.com/bminor/glibc/search?q=__wur&type=
- Georgelemental 4y agoRust also has something similar, in the form of the `#[must_use]` attribute.
- loeg 4y agoYeah, and one called `[[nodiscard]]` in C++17 as well.