XRTraits C++ OpenXR Utilities
Macros
Attributes.h File Reference

Header defining macros corresponding to various C++ attributes. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define XRTRAITS_FALLTHROUGH   [[fallthrough]]
 Compatibility wrapper for [[fallthrough]] More...
 
#define XRTRAITS_NODISCARD   [[nodiscard]]
 Compatibility wrapper for [[nodiscard]] More...
 
#define XRTRAITS_MAYBE_UNUSED   [[maybe_unused]]
 Compatibility wrapper for [[maybe_unused]] More...
 
#define XRTRAITS_MAY_ALIAS   __attribute__((__may_alias__))
 Portability wrapper for indicating that a type may alias other types. More...
 

Detailed Description

Header defining macros corresponding to various C++ attributes.

Author
Ryan Pavlik ryan..nosp@m.pavl.nosp@m.ik@co.nosp@m.llab.nosp@m.ora.c.nosp@m.om

Macro Definition Documentation

◆ XRTRAITS_FALLTHROUGH

#define XRTRAITS_FALLTHROUGH   [[fallthrough]]

Compatibility wrapper for [[fallthrough]]

◆ XRTRAITS_MAY_ALIAS

#define XRTRAITS_MAY_ALIAS   __attribute__((__may_alias__))

Portability wrapper for indicating that a type may alias other types.

◆ XRTRAITS_MAYBE_UNUSED

#define XRTRAITS_MAYBE_UNUSED   [[maybe_unused]]

Compatibility wrapper for [[maybe_unused]]

Referenced by xrtraits::casts::xr_tagged_dynamic_cast(), and xrtraits::casts::xr_tagged_risky_cast().

◆ XRTRAITS_NODISCARD

#define XRTRAITS_NODISCARD   [[nodiscard]]

Compatibility wrapper for [[nodiscard]]