79455c5161
* Add list of included headers into the manifest * Implement importing "foreign" type declarations * Implement forward declarations more natively in the compiler * Represent Objective-C categories as Kotlin extension methods and properties Also: * Do some refactoring in stub generation * Call bridges directly in stubs for Objective-C properties
9 lines
202 B
Kotlin
9 lines
202 B
Kotlin
import sysstat.*
|
|
import kotlinx.cinterop.*
|
|
|
|
fun main(args: Array<String>) {
|
|
val statBuf = nativeHeap.alloc<stat>()
|
|
val res = stat("/", statBuf.ptr)
|
|
println(res)
|
|
println(statBuf.st_uid)
|
|
} |