1 2 3 4 5 6 7 8 9 10 11 12
type Opaque* {.incompleteStruct.} = object type Normal* {.union.} = object x: int32 y: float32 type NormalWithZST* {.union.} = object x: int32 y: float32 proc root*(a: ptr Opaque, b: Normal, c: NormalWithZST) {.importc: "root".}