mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 07:23:39 +00:00
cgo: implement struct types
Not complete: packed structs are treated as regular structs.
This commit is contained in:
committed by
Ron Evans
parent
bd8e47af80
commit
684543b7f1
Vendored
+1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user