1 #include <ccan/typesafe_cb/typesafe_cb.h>
4 static void _register_callback(void (*cb)(void *arg, int x), void *arg)
7 #define register_callback(cb, arg) \
8 _register_callback(typesafe_cb_postargs(void, (cb), (arg), int), (arg))
10 static void my_callback(char *p, int x)
14 int main(int argc, char *argv[])
18 #if !HAVE_TYPEOF||!HAVE_BUILTIN_CHOOSE_EXPR||!HAVE_BUILTIN_TYPES_COMPATIBLE_P
19 #error "Unfortunately we don't fail if cast_if_type is a noop."
25 register_callback(my_callback, p);