11 lines
219 B
Kotlin
11 lines
219 B
Kotlin
import kotlinx.cinterop.staticCFunction
|
|
import cCallback.runAndCatch
|
|
|
|
fun throwingCallback() {
|
|
throw IllegalStateException("Kotlin Exception!")
|
|
}
|
|
|
|
|
|
fun main() {
|
|
runAndCatch(staticCFunction(::throwingCallback))
|
|
} |