From 9f50f8ff2af481896ce209fc3886a061c45a5254 Mon Sep 17 00:00:00 2001 From: Abduqodiri Qurbonzoda Date: Thu, 6 Apr 2023 21:10:16 +0300 Subject: [PATCH] [K/N] Internalize print/println(String) functions As a part of efforts to stabilize Native stdlib. --- kotlin-native/runtime/src/main/kotlin/kotlin/io/Console.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/io/Console.kt b/kotlin-native/runtime/src/main/kotlin/kotlin/io/Console.kt index df68ca37012..083a767bf44 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/io/Console.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/io/Console.kt @@ -9,7 +9,8 @@ import kotlin.native.internal.GCUnsafeCall /** Prints the given [message] to the standard output stream. */ @GCUnsafeCall("Kotlin_io_Console_print") -public external fun print(message: String) +@PublishedApi +internal external fun print(message: String) /** Prints the given [message] to the standard output stream. */ public actual fun print(message: Any?) { @@ -18,7 +19,8 @@ public actual fun print(message: Any?) { /** Prints the given [message] and the line separator to the standard output stream. */ @GCUnsafeCall("Kotlin_io_Console_println") -public external fun println(message: String) +@PublishedApi +internal external fun println(message: String) /** Prints the given [message] and the line separator to the standard output stream. */ public actual fun println(message: Any?) {