1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq // typedef void (*my_fun_t)(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int); struct Foo { my_fun_t callback; }; typedef void (*my_fun2_t)(int, int, int, int, int, int, int, int, int, int, int, int); struct Bar { my_fun2_t callback; };