[K/N] Internalize print/println(String) functions

As a part of efforts to stabilize Native stdlib.
This commit is contained in:
Abduqodiri Qurbonzoda
2023-04-06 21:10:16 +03:00
parent 709d6c38d2
commit 9f50f8ff2a
@@ -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?) {