Debian Codegraph @

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

raw
1 #if 0
2 DEF FOO = 0
3 DEF BAR = 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(FOO)
13 #define FOO 1
14 #endif
15
16 #if defined(BAR)
17 #define BAR 2
18 #endif
19
20 #if defined(FOO)
21 typedef struct Foo {
22
23 } Foo;
24 #endif
25
26 #if defined(BAR)
27 typedef struct Bar {
28
29 } Bar;
30 #endif
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif // __cplusplus
35
36 #if defined(FOO)
37 void foo(const struct Foo *foo);
38 #endif
39
40 #if defined(BAR)
41 void bar(const struct Bar *bar);
42 #endif
43
44 #ifdef __cplusplus
45 } // extern "C"
46 #endif // __cplusplus