1 #include <ccan/typesafe_cb/typesafe_cb.h>
4 /* NULL args for callback function should be OK for normal and _def. */
6 static void _register_callback(void (*cb)(const void *arg), const void *arg)
10 #define register_callback(cb, arg) \
11 _register_callback(typesafe_cb(void, const void *, (cb), (arg)), (arg))
13 int main(int argc, char *argv[])
15 register_callback(NULL, "hello world");