WASM: Crude println implementation with the wasm-native strings
This commit is contained in:
committed by
TeamCityServer
parent
fc0ae851a2
commit
ebde1e5491
@@ -14,7 +14,7 @@ public actual fun println() {
|
||||
|
||||
/** Prints the given [message] and the line separator to the standard output stream. */
|
||||
public actual fun println(message: Any?) {
|
||||
printlnImpl(message.toString())
|
||||
printlnImpl(exportStringRet(message.toString()))
|
||||
}
|
||||
|
||||
/** Prints the given [message] to the standard output stream. */
|
||||
@@ -27,5 +27,5 @@ public actual fun print(message: Any?) {
|
||||
internal actual interface Serializable
|
||||
|
||||
@WasmImport("runtime", "println")
|
||||
private fun printlnImpl(message: String): Unit =
|
||||
private fun printlnImpl(messageAddr: Int): Unit =
|
||||
implementedAsIntrinsic
|
||||
|
||||
Reference in New Issue
Block a user