| 1 |
#include <stdarg.h> |
| 2 |
#include <stdbool.h> |
| 3 |
#include <stdint.h> |
| 4 |
#include <stdlib.h> |
| 5 |
|
| 6 |
typedef struct Bar Bar; |
| 7 |
|
| 8 |
typedef struct { |
| 9 |
int32_t a; |
| 10 |
uint32_t b; |
| 11 |
} Foo; |
| 12 |
#define Foo_FOO (Foo){ .a = 42, .b = 47 } |
| 13 |
#define Foo_FOO2 (Foo){ .a = 42, .b = 47 } |
| 14 |
#define Foo_FOO3 (Foo){ .a = 42, .b = 47 } |
| 15 |
|
| 16 |
|
| 17 |
#define BAR (Foo){ .a = 42, .b = 1337 } |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
#ifdef __cplusplus |
| 22 |
extern "C" { |
| 23 |
#endif // __cplusplus |
| 24 |
|
| 25 |
void root(Foo x, Bar bar); |
| 26 |
|
| 27 |
#ifdef __cplusplus |
| 28 |
} // extern "C" |
| 29 |
#endif // __cplusplus |