- typesafe_cb_cmp(int, (cmpfn), (base)), \
- typesafe_cb_const(bool, (validfn), (base)))
+ typesafe_cb_cast(int (*)(const void *, const void *), \
+ int (*)(const __typeof__(*(base)) *, \
+ const __typeof__(*(base)) *), \
+ (cmpfn)), \
+ typesafe_cb_cast(bool (*)(const void *), \
+ bool (*)(const __typeof__(*(base)) *), \
+ (validfn)))