cgo: add support for bitfields using generated getters and setters

This commit is contained in:
Ayke van Laethem
2019-05-29 23:26:57 +02:00
committed by Ron Evans
parent 23c8d15847
commit 1d7cc2c242
7 changed files with 412 additions and 8 deletions
+1
View File
@@ -18,6 +18,7 @@ short globalArray[3] = {5, 6, 7};
joined_t globalUnion;
int globalUnionSize = sizeof(globalUnion);
option_t globalOption = optionG;
bitfield_t globalBitfield = {244, 15, 1, 2, 47, 5};
int fortytwo() {
return 42;