tinygo/loader
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
..
cgo.go cgo: improve diagnostics 2019-04-11 10:11:09 +02:00
errors.go loader: better error message on import cycles 2019-01-27 10:38:02 +01:00
libclang.go cgo: implement C unions 2019-04-17 11:56:40 +02:00
libclang_config.go all: switch to LLVM 8 2019-03-22 22:55:11 +01:00
loader.go cgo: improve diagnostics 2019-04-11 10:11:09 +02:00
ssa.go loader: switch to custom program loader 2018-12-10 15:36:23 +01:00
sync.go cgo: make libclang code thread-safe 2019-04-17 11:56:40 +02:00