Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/raw_ident.both.compat.c

raw
1 #include <stdarg.h>
2 #include <stdbool.h>
3 #include <stdint.h>
4 #include <stdlib.h>
5
6 enum Enum
7 #ifdef __cplusplus
8 : uint8_t
9 #endif // __cplusplus
10 {
11 a,
12 b,
13 };
14 #ifndef __cplusplus
15 typedef uint8_t Enum;
16 #endif // __cplusplus
17
18 typedef struct Struct {
19 Enum field;
20 } Struct;
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif // __cplusplus
25
26 extern const Enum STATIC;
27
28 void fn(struct Struct arg);
29
30 #ifdef __cplusplus
31 } // extern "C"
32 #endif // __cplusplus