Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/cfg_2.both.c

raw
1 #if 0
2 DEF DEFINED = 1
3 DEF NOT_DEFINED = 0
4 #endif
5
6
7 #include <stdarg.h>
8 #include <stdbool.h>
9 #include <stdint.h>
10 #include <stdlib.h>
11
12 #if defined(NOT_DEFINED)
13 #define DEFAULT_X 8
14 #endif
15
16 #if defined(DEFINED)
17 #define DEFAULT_X 42
18 #endif
19
20 #if (defined(NOT_DEFINED) || defined(DEFINED))
21 typedef struct Foo {
22 int32_t x;
23 } Foo;
24 #endif
25
26 #if defined(NOT_DEFINED)
27 typedef struct Bar {
28 struct Foo y;
29 } Bar;
30 #endif
31
32 #if defined(DEFINED)
33 typedef struct Bar {
34 struct Foo z;
35 } Bar;
36 #endif
37
38 typedef struct Root {
39 struct Bar w;
40 } Root;
41
42 void root(struct Root a);