cgo: implement struct types

Not complete: packed structs are treated as regular structs.
This commit is contained in:
Ayke van Laethem
2019-04-11 14:03:08 +02:00
committed by Ron Evans
parent bd8e47af80
commit 684543b7f1
4 changed files with 73 additions and 4 deletions
+1
View File
@@ -36,6 +36,7 @@ func main() {
println("complex float:", C.globalComplexFloat)
println("complex double:", C.globalComplexDouble)
println("complex long double:", C.globalComplexLongDouble)
println("struct:", C.globalStruct.s, C.globalStruct.l, C.globalStruct.f)
}
//export mul