I have a huge enum (6000+ options) in my cdef. The generated C code for the array of _cffi_enum_s, field enumerators thus contains a humongous string which trips MSVC.
Huge generated strings need to be split. As a workaround I resorted to having typedef ... MyEnum; in the cdef, but now I don't have MyEnum's fields on my imported lib object.
I have a huge enum (6000+ options) in my cdef. The generated C code for the array of
_cffi_enum_s, fieldenumeratorsthus contains a humongous string which trips MSVC.Huge generated strings need to be split. As a workaround I resorted to having
typedef ... MyEnum;in the cdef, but now I don't haveMyEnum'sfields on my importedlibobject.