On Thu Aug 24 11:54:18 2023 +0000, Rémi Bernon wrote:
In C++ these are `enum class`, which is different from `enum` as the value won't be in the global namespace and you'd have to do `DXCoreAdapterProperty::InstanceLuid` for instance. However, C doesn't have `enum class` and we want the headers to be compatible with our C code, so I suggest maybe doing something like:
#ifdef __cplusplus #define DECLARE_ENUM_CLASS(x) enum class x #else #define DECLARE_ENUM_CLASS(x) typedef enum x x; enum x #endif DECLARE_ENUM_CLASS(DXCoreAdapterProperty) { ... };
(Probably best to merge the #ifdef with the other #ifdef above)