clong
clong copied to clipboard
A wrapper for libclang and a generator that can turn c header files into clojure apis.
An incomplete list of changes required to support native image: - com.phronemophobic.clong.gen.jna generates the code needed for functions, but also loads `insn.core` to create structure classes. `insn.core` must only be...
Bitfields in structs are ignored which can lead to crashes. The size of individual elements are too big and the struct class on the jvm side ends up much larger...
When debugging API definitions, it's convenient to have the info needed to find definitions in the corresponding header files. Including file info also would allow filtering definitions by filename.