Hi! Are there any docs on how to work with the kot...
# kotlin-native
n
Hi! Are there any docs on how to work with the kotlin native source code? More specifically I would like to make some changes to the runtime C++ code to add some debugging facilities to get more insights into unexpected freezing. Are you guys using CLion for the C++ code? What about the Kotlin code?
i
CLion was used both for C/C++ and Kotlin code before, but now you should use CLion only for C/C++ code and IDEA for Kotlin.
k
The actual C++ runtime? I’ve done edits, but never used CLion there (I have done C++ linking against the runtime from CLion, though). What kind of debugging?
ensureNeverFrozen
insufficent?
n
I was referring to the code here: https://github.com/JetBrains/kotlin-native/tree/master/runtime. But it looks like
ensureNeverFrozen
is exactly what I need. I will give it a try. Thanks!
👍 1
k
Yeah, I was poking around the idea of doing the same with the runtime at one point.
ensureNeverFrozen
is usually fine, but you can’t really call that on code private to a library, which has come up periodically. Have found workarounds, though.