|
Monado OpenXR Runtime
|
Header holding common defines. More...
#include <stddef.h>#include <stdint.h>#include <stdbool.h>#include <inttypes.h>#include <stdalign.h>
Go to the source code of this file.
Macros | |
| #define | XRT_ALIGNAS(align) alignas(align) |
| #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_CHECK_RESULT |
| #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... | |
| #define | XRT_STRUCT_INIT {} |
| Very small default init for structs that works in both C and C++. More... | |
| #define | XRT_C11_COMPOUND(X) (X) |
Typedefs | |
| typedef volatile int32_t | xrt_atomic_s32_t |
Header holding common defines.
| #define ARRAY_SIZE | ( | a | ) | (sizeof(a) / sizeof((a)[0])) |
Array size helper.