I’ve generated some cinterop code from a `.def` fi...
# kotlin-native
a
I’ve generated some cinterop code from a
.def
file, and I’ve written some helper functions to interact with the generated code, but it’s a little awkward because the helper functions and generated cinterop functions are named similarly, so they easy to confuse. Is it possible to either mark all code generated by cinterop as
internal
, or to add an
@OptIn
annotation to all generated code? I’ve got some code that can parse the generated
.klib
(see 🧵) and add an
@OptIn
, but I’m not sure how to write the
KlibModuleMetadata
back out into a
.klib
.
klibModifier.kt
that’s using kotlinx-metadata-klib
I made an issue for my use-case https://youtrack.jetbrains.com/issue/KT-56226