diff options
author | Ignat Beresnev <ignat.beresnev@jetbrains.com> | 2023-08-04 13:37:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 13:37:12 +0200 |
commit | ddcaa1864ffc26e8482770ad2c16ba424af8a0ac (patch) | |
tree | 2ddd3eb163611d2448f8608857a3d97597b71231 /examples/gradle/dokka-multiplatform-example/src/linuxMain | |
parent | ec95267a8bcb92733e506a41e7cc6305b1ff0552 (diff) | |
download | dokka-ddcaa1864ffc26e8482770ad2c16ba424af8a0ac.tar.gz dokka-ddcaa1864ffc26e8482770ad2c16ba424af8a0ac.tar.bz2 dokka-ddcaa1864ffc26e8482770ad2c16ba424af8a0ac.zip |
Update examples and tests to use Kotlin 1.9.0 (#3101)
* Opt into foreign API for CPointed
* Stop using the deprecated JS backend
Diffstat (limited to 'examples/gradle/dokka-multiplatform-example/src/linuxMain')
-rw-r--r-- | examples/gradle/dokka-multiplatform-example/src/linuxMain/kotlin/org/kotlintestmpp/CInterop.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/gradle/dokka-multiplatform-example/src/linuxMain/kotlin/org/kotlintestmpp/CInterop.kt b/examples/gradle/dokka-multiplatform-example/src/linuxMain/kotlin/org/kotlintestmpp/CInterop.kt index c42cfea1..5c84780b 100644 --- a/examples/gradle/dokka-multiplatform-example/src/linuxMain/kotlin/org/kotlintestmpp/CInterop.kt +++ b/examples/gradle/dokka-multiplatform-example/src/linuxMain/kotlin/org/kotlintestmpp/CInterop.kt @@ -4,10 +4,12 @@ package org.kotlintestmpp import kotlinx.cinterop.CPointed import kotlinx.cinterop.CPointer +import kotlinx.cinterop.ExperimentalForeignApi /** * Low-level Linux function */ +@OptIn(ExperimentalForeignApi::class) fun <T : CPointed> printPointerRawValue(pointer: CPointer<T>) { println(pointer.rawValue) } |