.cargo/vendor/cbindgen/tests/expectations/mangle.compat.c
raw| 1 | #include <stdarg.h> |
| 2 | #include <stdbool.h> |
| 3 | #include <stdint.h> |
| 4 | #include <stdlib.h> |
| 5 | |
| 6 | typedef enum { |
| 7 | BarSome, |
| 8 | BarThing, |
| 9 | } Bar; |
| 10 | |
| 11 | typedef struct { |
| 12 | uint8_t a; |
| 13 | } FooU8; |
| 14 | |
| 15 | typedef FooU8 Boo; |
| 16 | |
| 17 | #ifdef __cplusplus |
| 18 | extern "C" { |
| 19 | #endif // __cplusplus |
| 20 | |
| 21 | void root(Boo x, Bar y); |
| 22 | |
| 23 | #ifdef __cplusplus |
| 24 | } // extern "C" |
| 25 | #endif // __cplusplus |