mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-17 11:13:27 +00:00
cgo: add support for bitfields using generated getters and setters
This commit is contained in:
committed by
Ron Evans
parent
23c8d15847
commit
1d7cc2c242
Vendored
+10
@@ -31,6 +31,16 @@ union local data: 5 8 1
|
||||
union s: true
|
||||
union f: +6.280000e+000
|
||||
union field: +6.280000e+000
|
||||
bitfield a: 15
|
||||
bitfield b: 1
|
||||
bitfield c: 2
|
||||
bitfield d: 47
|
||||
bitfield e: 5
|
||||
bitfield a: 7
|
||||
bitfield b: 0
|
||||
bitfield c: 3
|
||||
bitfield d: 47
|
||||
bitfield e: 5
|
||||
struct: 3 5
|
||||
n in chain: 3
|
||||
n in chain: 6
|
||||
|
||||
Reference in New Issue
Block a user