W3cubDocs

/Kotlin

CName

Platform and version requirements: Native (1.3)
@Target([AnnotationTarget.FUNCTION]) annotation class CName

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.

Constructors

Platform and version requirements: Native (1.3)

<init>

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

CName(externName: String = "", shortName: String = "")

Properties

Platform and version requirements: Native (1.3)

externName

val externName: String
Platform and version requirements: Native (1.3)

shortName

val shortName: String

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native/-c-name/index.html