Question: Can Kotlin native generate C header file...
# kotlin-native
j
Question: Can Kotlin native generate C header files so that kotlin can be called as a library by C code?
o
For that one has to map features of Kotlin to C, which is not generally possible. However, generate headers from specially marked top level functions may be possible.
😞 1
j
Possible but not currently implemented is what you are saying?
I work on some tools for FIRST that are written in C++ but expose JNI bindings and their own library. It would be kind of cool to write the whole thing in one language and expose the API in that language too.
o
yes, possible but not yet implemented