https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
g

Gavin Ray

10/21/2021, 4:16 PM
Is there any reason why instead of only being able to generate definitions from
C .h -> Kotlin Native type
you could write a compiler plugin that did codegen and emitted an
.h
?
Copy code
interface SomeStruct {
    @CType.Int32
    val anInt: Int
}
Copy code
typedef struct SomeStruct {
  int32_t anInt;
} SomeStruct;
4 Views