Udipe 1.0
Solving the riddle of high-throughput UDP
Loading...
Searching...
No Matches
Macros
nodiscard.h File Reference

Nodiscard polyfill. More...

Go to the source code of this file.

Macros

#define UDIPE_NODISCARD
 

Detailed Description

As compiler C23 support is not quite ready at the time of writing, this header provides a GCC/clang specific alternative to the [[nodiscard]] attribute. It does nothing on MSVC and will eventually be replaced by [[nodiscard]] once we do move to C23.

Macro Definition Documentation

◆ UDIPE_NODISCARD

#define UDIPE_NODISCARD

Assertion that a function's result must be used in some way, and failing to use it is always an error.

This will make lack of use a warning on compilers that support it.