···11+/*
22+** Copyright (c) 2017-2022, The Khronos Group Inc.
33+**
44+** SPDX-License-Identifier: Apache-2.0
55+*/
66+77+#pragma once
88+99+#include <openxr/openxr.h>
1010+1111+// These are just convenience macros for defining enums that would
1212+// normally be declared in the body of the enum, but can't be declared
1313+// that way easily for experimental extensions.
1414+1515+#define XR_ENUM(type, enm, constant) static const type enm = (type)constant
1616+#define XR_STRUCT_ENUM(enm, constant) XR_ENUM(XrStructureType, enm, constant)
1717+#define XR_RESULT_ENUM(enm, constant) XR_ENUM(XrResult, enm, constant)
1818+#define XR_REFSPACE_ENUM(enm, constant) XR_ENUM(XrReferenceSpaceType, enm, constant)