https://kotlinlang.org logo
Title
n

nish

05/12/2017, 1:52 PM
Awesome release guys. When are we getting extern C?
o

olonho

05/12/2017, 2:09 PM
nish: Thanks! what exactly do you expect from "extern C"? Note that you already may call both Kotlin -> and C -> Kotlin (using konan.internal.ExportForCppRuntime annotation)
n

nish

05/12/2017, 2:10 PM
Awesome. I didn’t know we could do that just yet
Is there a sample project or documentation about this feature available?
o

olonho

05/12/2017, 2:21 PM
it's not stable API at the moment, however take a look at https://github.com/JetBrains/kotlin-native/blob/master/runtime/src/launcher/cpp/launcher.cpp (don't forget to init runtime before calling to Kotlin, although)
1
n

nish

05/12/2017, 2:33 PM
Awesome. I’ll look through it