Monado OpenXR Runtime
Macros
xrt_compiler.h File Reference

Header holding common defines. More...

#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
Include dependency graph for xrt_compiler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ARRAY_SIZE(a)   (sizeof(a) / sizeof((a)[0]))
 Array size helper. More...
 
#define XRT_32_BIT
 
#define XRT_PRINTF_FORMAT(fmt, list)
 
#define XRT_MAYBE_UNUSED
 
#define XRT_NO_INLINE
 
#define XRT_DEBUGBREAK()
 To trigger a trap/break in the debugger. More...
 
#define container_of(ptr, type, field)   (type *)((char *)ptr - offsetof(type, field))
 Get the holder from a pointer to a field. More...
 

Detailed Description

Header holding common defines.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Macro Definition Documentation

◆ ARRAY_SIZE

#define ARRAY_SIZE (   a)    (sizeof(a) / sizeof((a)[0]))

Array size helper.