tinygo/testdata/cgo
Ayke van Laethem d2b3a5486c cgo: implement C unions
Unions are somewhat hard to implement in Go because they are not a
native type. But it is actually possible with some compiler magic.

This commit inserts a special "C union" field at the start of a struct
to indicate that it is a union. As such a field cannot be written
directly in Go, this is a useful to distinguish structs and unions.
2019-04-17 11:56:40 +02:00
..
main.c cgo: implement C unions 2019-04-17 11:56:40 +02:00
main.go cgo: implement C unions 2019-04-17 11:56:40 +02:00
main.h cgo: implement C unions 2019-04-17 11:56:40 +02:00
out.txt cgo: implement C unions 2019-04-17 11:56:40 +02:00