Hey guys, can you tell me if we are able to use th...
# kotlin-native
j
Hey guys, can you tell me if we are able to use these *.kt.bc native libraries with C code?
this is how Kotlin land is entered initially
j
Ow nice, so using @ExportForCppRuntime annotation and providing a header with the function declaration it's enough to call this code on the C side right? Like you did on : @ExportForCppRuntime fun ThrowClassCastException(): Nothing { throw ClassCastException() }
o
yes, pretty much
however, beware, this is an internal API at the moment, so may be changed without notice
j
No problem @olonho, i was just wondering about how i would do this integration, but is just to make some test codes and use this feature. Thanks again i i'm look forward to next updates on Kotlin native 😬