[Swift Export] KT-63516

Add a sir-compiler-bridge module that adds Kotlin and C bridges
for SIR. As SIR is still WIP, the module accepts `BridgeRequest`
instances instead of SIR elements.
This commit is contained in:
Sergey Bogolepov
2023-11-16 15:58:43 +02:00
committed by Space Team
parent 7c15e3f229
commit fe9ab0a1fc
36 changed files with 701 additions and 0 deletions
@@ -0,0 +1,20 @@
import kotlin.native.internal.ExportForCppRuntime
@ExportForCppRuntime("a")
public fun a(p0: Byte, p1: Short, p2: Int, p3: Long): Int {
val result = pkg.a(p0, p1, p2, p3)
return result
}
@ExportForCppRuntime("b")
public fun b(p0: UByte, p1: UShort, p2: UInt, p3: ULong): UInt {
val result = pkg.b(p0, p1, p2, p3)
return result
}
@ExportForCppRuntime("c")
public fun c(p0: Boolean): Boolean {
val result = pkg.c(p0)
return result
}