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

Header wrapping or stubbing GSL. More...

#include <assert.h>
Include dependency graph for GSLWrap.h:

Go to the source code of this file.

Macros

#define GSL_ASSUME(X)   assert(X)
 
#define Expects(X)   assert(X)
 When GSL is available, normally asserts a precondition. More...
 

Detailed Description

Header wrapping or stubbing GSL.

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

Macro Definition Documentation

◆ Expects

#define Expects (   X)    assert(X)

When GSL is available, normally asserts a precondition.

◆ GSL_ASSUME

#define GSL_ASSUME (   X)    assert(X)

When GSL is available, normally tells the optimizer to assume the condition is true.