Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/const_generics_constant.c

raw
1 #include <stdarg.h>
2 #include <stdbool.h>
3 #include <stdint.h>
4 #include <stdlib.h>
5
6 #define FONT_WEIGHT_FRACTION_BITS 6
7
8 typedef struct {
9 uint16_t value;
10 } FixedPoint_FONT_WEIGHT_FRACTION_BITS;
11
12 typedef FixedPoint_FONT_WEIGHT_FRACTION_BITS FontWeightFixedPoint;
13
14 typedef struct {
15 FontWeightFixedPoint _0;
16 } FontWeight;
17 #define FontWeight_NORMAL (FontWeight){ ._0 = (FontWeightFixedPoint){ .value = (400 << FONT_WEIGHT_FRACTION_BITS) } }
18
19 void root(FontWeight w);