1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/mctp_nets.in; do not edit. */
2
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5
6 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
7 static_assert((MCTP_NET_ANY) == (0x0), "MCTP_NET_ANY != 0x0");
8 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
9 #undef XLAT_PREV_VAL
10
11 #ifndef XLAT_MACROS_ONLY
12
13 # ifdef IN_MPERS
14
15 # error static const struct xlat mctp_nets in mpers mode
16
17 # else
18
19 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
20 static const struct xlat_data mctp_nets_xdata[] = {
21 XLAT(MCTP_NET_ANY),
22 #define XLAT_VAL_0 ((unsigned) (MCTP_NET_ANY))
23 #define XLAT_STR_0 STRINGIFY(MCTP_NET_ANY)
24 };
25 static
26 const struct xlat mctp_nets[1] = { {
27 .data = mctp_nets_xdata,
28 .size = ARRAY_SIZE(mctp_nets_xdata),
29 .type = XT_NORMAL,
30 .flags_mask = 0
31 # ifdef XLAT_VAL_0
32 | XLAT_VAL_0
33 # endif
34 ,
35 .flags_strsz = 0
36 # ifdef XLAT_STR_0
37 + sizeof(XLAT_STR_0)
38 # endif
39 ,
40 } };
41 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
42
43 # undef XLAT_STR_0
44 # undef XLAT_VAL_0
45 # endif /* !IN_MPERS */
46
47 #endif /* !XLAT_MACROS_ONLY */