Mark the CName annotation with ExperimentalNativeApi
This commit is contained in:
committed by
Space Team
parent
e5ab1d9ccf
commit
7a0af5d058
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
package kotlin.native
|
package kotlin.native
|
||||||
|
|
||||||
|
import kotlin.experimental.ExperimentalNativeApi
|
||||||
import kotlin.experimental.ExperimentalObjCName
|
import kotlin.experimental.ExperimentalObjCName
|
||||||
import kotlin.experimental.ExperimentalObjCRefinement
|
import kotlin.experimental.ExperimentalObjCRefinement
|
||||||
import kotlin.reflect.KClass
|
import kotlin.reflect.KClass
|
||||||
@@ -86,6 +87,7 @@ public annotation class EagerInitialization
|
|||||||
* [externName] controls the name of top level function, [shortName] controls the short 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.
|
* If [externName] is empty, no top level declaration is being created.
|
||||||
*/
|
*/
|
||||||
|
@ExperimentalNativeApi
|
||||||
@Target(AnnotationTarget.FUNCTION)
|
@Target(AnnotationTarget.FUNCTION)
|
||||||
@Retention(AnnotationRetention.BINARY)
|
@Retention(AnnotationRetention.BINARY)
|
||||||
public actual annotation class CName(actual val externName: String = "", actual val shortName: String = "")
|
public actual annotation class CName(actual val externName: String = "", actual val shortName: String = "")
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
package kotlin.native
|
package kotlin.native
|
||||||
|
|
||||||
|
import kotlin.experimental.ExperimentalNativeApi
|
||||||
import kotlin.experimental.ExperimentalObjCName
|
import kotlin.experimental.ExperimentalObjCName
|
||||||
import kotlin.experimental.ExperimentalObjCRefinement
|
import kotlin.experimental.ExperimentalObjCRefinement
|
||||||
|
|
||||||
@@ -14,6 +15,7 @@ import kotlin.experimental.ExperimentalObjCRefinement
|
|||||||
* [externName] controls the name of top level function, [shortName] controls the short 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.
|
* If [externName] is empty, no top level declaration is being created.
|
||||||
*/
|
*/
|
||||||
|
@ExperimentalNativeApi
|
||||||
@SinceKotlin("1.5")
|
@SinceKotlin("1.5")
|
||||||
@Target(AnnotationTarget.FUNCTION)
|
@Target(AnnotationTarget.FUNCTION)
|
||||||
@Retention(AnnotationRetention.BINARY)
|
@Retention(AnnotationRetention.BINARY)
|
||||||
|
|||||||
Reference in New Issue
Block a user