Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/enum_discriminant.compat.c

raw
1 #include <stdarg.h>
2 #include <stdbool.h>
3 #include <stdint.h>
4 #include <stdlib.h>
5
6 #define FOURTY_FOUR 4
7
8 enum E
9 #ifdef __cplusplus
10 : int8_t
11 #endif // __cplusplus
12 {
13 A = 1,
14 B = -1,
15 C = (1 + 2),
16 D = FOURTY_FOUR,
17 F = 5,
18 G = (int8_t)54,
19 H = (int8_t)false,
20 };
21 #ifndef __cplusplus
22 typedef int8_t E;
23 #endif // __cplusplus
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif // __cplusplus
28
29 void root(const E*);
30
31 #ifdef __cplusplus
32 } // extern "C"
33 #endif // __cplusplus