Which can get verbose to use and finding which enum contains the corresponding member from C code can be a problem: hb_memory_mode_t.HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE
I'm aware of --rename-enum-members=true but it is not recommended to rename symbol names in pure bindings so this seems to me like the best solution for preserving original names.
There is also --alias-enum-members=true but aliasing every single enum member makes no sense to me aside from the type-safetyness but I think that's a job of a wrapper not binding. (Also it doesn't work properly right now)
It seems like a valuable enchanment. Instead of generating a named enum:
Which can get verbose to use and finding which enum contains the corresponding member from C code can be a problem:
hb_memory_mode_t.HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE
We can instead generate an anonymous enum:
I'm aware of
--rename-enum-members=true
but it is not recommended to rename symbol names in pure bindings so this seems to me like the best solution for preserving original names. There is also--alias-enum-members=true
but aliasing every single enum member makes no sense to me aside from the type-safetyness but I think that's a job of a wrapper not binding. (Also it doesn't work properly right now)