1ec506d0b1
The K/N stdlib doesn't contain basic classes (e.g. Functon0, Function1 etc) for functional types with >22 parameters. So we cannot convert functional pointers with such signatures into Kotlin functional types and have to replace them with opaque pointers. Fix for GitHub issue #2334.
Kotlin-native interop
Usage
Create file ../gradle.properties with contents:
llvmInstallPath=/path/to/llvm
Create a Gradle subproject somewhere under ../, using ../InteropExample as a template.
To generate the interop stubs and libraries and build all sources you can run
the following command from ../:
./gradlew InteropExample:build
To run the example (if 'application' plugin is enabled):
./gradlew InteropExample:run