From ddcaa1864ffc26e8482770ad2c16ba424af8a0ac Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Fri, 4 Aug 2023 13:37:12 +0200 Subject: Update examples and tests to use Kotlin 1.9.0 (#3101) * Opt into foreign API for CPointed * Stop using the deprecated JS backend --- .../src/linuxMain/kotlin/org/kotlintestmpp/CInterop.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/gradle/dokka-multiplatform-example/src/linuxMain') 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 printPointerRawValue(pointer: CPointer) { println(pointer.rawValue) } -- cgit