blob: b72600497aa87579f3225ec8675bacc04c458d14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
header = """
#define CBINDGEN_PACKED __attribute__ ((packed))
#define CBINDGEN_ALIGNED(n) __attribute__ ((aligned(n)))
"""
[layout]
# We do not define packed.
aligned_n = "CBINDGEN_ALIGNED"
[export]
include = [
"Align1Union",
"Align4Union",
"Align16Union",
"Align1Struct",
"Align2Struct",
"Align4Struct",
"Align8Struct",
"Align32Struct",
"OpaquePackedStruct",
"OpaquePackedUnion",
]
|