.cargo/vendor/cbindgen/tests/expectations/prefixed_struct_literal_deep.compat.c
raw| 1 | #include <stdarg.h> |
| 2 | #include <stdbool.h> |
| 3 | #include <stdint.h> |
| 4 | #include <stdlib.h> |
| 5 | |
| 6 | typedef struct { |
| 7 | int32_t a; |
| 8 | } PREFIXBar; |
| 9 | |
| 10 | typedef struct { |
| 11 | int32_t a; |
| 12 | uint32_t b; |
| 13 | PREFIXBar bar; |
| 14 | } PREFIXFoo; |
| 15 | |
| 16 | #define PREFIXVAL (PREFIXFoo){ .a = 42, .b = 1337, .bar = (PREFIXBar){ .a = 323 } } |
| 17 | |
| 18 | #ifdef __cplusplus |
| 19 | extern "C" { |
| 20 | #endif // __cplusplus |
| 21 | |
| 22 | void root(PREFIXFoo x); |
| 23 | |
| 24 | #ifdef __cplusplus |
| 25 | } // extern "C" |
| 26 | #endif // __cplusplus |