Any way to enhance C interop "out-of-band?"


(Rick M) #1

I'm using a third-party C library whose header doesn't properly tag things like enums, and so they show up in Swift without their cases. Is there any way to write an auxiliary file to help the compiler do the conversion (e.g. something in the modulemap file), so that I don't have to modify the distributed header?

···

--
Rick Mann
rmann@latencyzero.com