| 1 |
header = """ |
| 2 |
#define CBINDGEN_PACKED __attribute__ ((packed)) |
| 3 |
#define CBINDGEN_ALIGNED(n) __attribute__ ((aligned(n))) |
| 4 |
""" |
| 5 |
|
| 6 |
[layout] |
| 7 |
packed = "CBINDGEN_PACKED" |
| 8 |
aligned_n = "CBINDGEN_ALIGNED" |
| 9 |
|
| 10 |
[export] |
| 11 |
include = [ |
| 12 |
"Align1Struct", |
| 13 |
"Align2Struct", |
| 14 |
"Align4Struct", |
| 15 |
"Align8Struct", |
| 16 |
"Align32Struct", |
| 17 |
"PackedStruct", |
| 18 |
"Align1Union", |
| 19 |
"Align4Union", |
| 20 |
"Align16Union", |
| 21 |
"PackedUnion", |
| 22 |
"UnsupportedPacked4Struct", |
| 23 |
"UnsupportedPacked4Union", |
| 24 |
"UnsupportedAlign4Enum", |
| 25 |
"RustAlign4Struct", |
| 26 |
"RustPackedStruct", |
| 27 |
"RustAlign4Union", |
| 28 |
"RustPackedUnion", |
| 29 |
] |