.cargo/vendor/cbindgen/tests/expectations/function_ptr.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 | void my_function(MyCallback a, MyOtherCallback b); |