.cargo/vendor/cbindgen/tests/expectations/mod_attr.both.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 | #if defined(FOO) |
| 33 | void foo(const struct Foo *foo); |
| 34 | #endif |
| 35 | |
| 36 | #if defined(BAR) |
| 37 | void bar(const struct Bar *bar); |
| 38 | #endif |