Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/function_ptr.compat.c

raw
1 #include <stdarg.h>
2 #include <stdbool.h>
3 #include <stdint.h>
4 #include <stdlib.h>
5
6 typedef void (*MyCallback)(uintptr_t a, uintptr_t b);
7
8 typedef void (*MyOtherCallback)(uintptr_t a,
9 uintptr_t lot,
10 uintptr_t of,
11 uintptr_t args,
12 uintptr_t and_then_some);
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif // __cplusplus
17
18 void my_function(MyCallback a, MyOtherCallback b);
19
20 #ifdef __cplusplus
21 } // extern "C"
22 #endif // __cplusplus