1 #ifndef RBIMPL_ATTR_MAYBE_UNUSED_H
2 #define RBIMPL_ATTR_MAYBE_UNUSED_H
28 #if RBIMPL_HAS_CPP_ATTRIBUTE(maybe_unused)
29 # define RBIMPL_ATTR_MAYBE_UNUSED() [[maybe_unused]]
30 #elif RBIMPL_HAS_C_ATTRIBUTE(maybe_unused)
31 # define RBIMPL_ATTR_MAYBE_UNUSED() [[maybe_unused]]
32 #elif RBIMPL_HAS_ATTRIBUTE(unused)
33 # define RBIMPL_ATTR_MAYBE_UNUSED() __attribute__((__unused__))
35 # define RBIMPL_ATTR_MAYBE_UNUSED()
Defines RBIMPL_HAS_ATTRIBUTE.
Defines RBIMPL_HAS_C_ATTRIBUTE.
Defines RBIMPL_HAS_CPP_ATTRIBUTE.