CName

expect annotation class CName(val externName: String = "", val shortName: String = "")(source)

Makes top level function available from C/C++ code with the given name.

externName controls the name of top level function, shortName controls the short name. If externName is empty, no top level declaration is being created.

Since Kotlin

1.5
actual annotation class CName(val externName: String = "", val shortName: String = "")(source)

Makes top level function available from C/C++ code with the given name.

externName controls the name of top level function, shortName controls the short name. If externName is empty, no top level declaration is being created.

Since Kotlin

1.3

Properties

Link copied to clipboard
expect val externName: String
Since Kotlin 1.5
actual val externName: String
Since Kotlin 1.3
Link copied to clipboard
expect val shortName: String
Since Kotlin 1.5
actual val shortName: String
Since Kotlin 1.3