|
Monado OpenXR Runtime
|
X_macro definitions for XRT enums to facilitate code generation.

X_macro definitions for XRT enums to facilitate code generation.
These macros allow you to programmatically iterate over all values in an enum without manually maintaining lists in multiple places.
Each enum that has been processed will have a corresponding <ENUM_NAME>_LIST macro defined in the included file.
Example 1 - Generate a string conversion function:
Example 2 - Generate an array of all enum values:
Example 3 - Count the number of enum values: