Join Slack
Communities
Powered by
Hi everyone, can anyone help me? If I throw except...
# kotlin-native
z
Zh Efimenko
06/24/2019, 11:12 AM
Hi everyone, can anyone help me? If I throw exception in kotlin/native library. How can I handle exception in C code?
a
Artyom Degtyarev [JB]
06/24/2019, 11:54 AM
To handle an exception, you got to provide a handler in your library. Check this (
https://github.com/JetBrains/kotlin-native/blob/ab29d5e073575cc1e24dd99ecd2e51bdbeb92ae5/backend.native/tests/produce_dynamic/simple/hello.kt#L102
) as an example. C code lies in the same directory
z
Zh Efimenko
06/24/2019, 12:02 PM
thanks
2
Views
Open in Slack
Previous
Next