Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/mod_attr.cpp

raw
1 #if 0
2 DEF FOO = 0
3 DEF BAR = 0
4 #endif
5
6
7 #include <cstdarg>
8 #include <cstdint>
9 #include <cstdlib>
10 #include <ostream>
11 #include <new>
12
13 #if defined(FOO)
14 constexpr static const int32_t FOO = 1;
15 #endif
16
17 #if defined(BAR)
18 constexpr static const int32_t BAR = 2;
19 #endif
20
21 #if defined(FOO)
22 struct Foo {
23
24 };
25 #endif
26
27 #if defined(BAR)
28 struct Bar {
29
30 };
31 #endif
32
33 extern "C" {
34
35 #if defined(FOO)
36 void foo(const Foo *foo);
37 #endif
38
39 #if defined(BAR)
40 void bar(const Bar *bar);
41 #endif
42
43 } // extern "C"