| 1 |
#include <stdarg.h> |
| 2 |
#include <stdbool.h> |
| 3 |
#include <stdint.h> |
| 4 |
#include <stdlib.h> |
| 5 |
|
| 6 |
typedef struct Fns { |
| 7 |
void (*noArgs)(void); |
| 8 |
void (*anonymousArg)(int32_t); |
| 9 |
int32_t (*returnsNumber)(void); |
| 10 |
int8_t (*namedArgs)(int32_t first, int16_t snd); |
| 11 |
int8_t (*namedArgsWildcards)(int32_t _, int16_t named, int64_t _1); |
| 12 |
} Fns; |
| 13 |
|
| 14 |
#ifdef __cplusplus |
| 15 |
extern "C" { |
| 16 |
#endif // __cplusplus |
| 17 |
|
| 18 |
void root(struct Fns _fns); |
| 19 |
|
| 20 |
void no_return(void); |
| 21 |
|
| 22 |
#ifdef __cplusplus |
| 23 |
} // extern "C" |
| 24 |
#endif // __cplusplus |