The timer API: size or type safety?
Posted Dec 8, 2006 17:10 UTC (Fri) by liljencrantz
In reply to: The timer API: size or type safety?
Parent article: The timer API: size or type safety?
That is so clever it hurts.
Am I correct in thinking that since check_callback_type never evaluates f or x, we also don't need to use typeof anymore, as we only truly reference f or x once? I.e. we can write this as:
check_callback_type( func, data );
timer->function = (void (*)(void *)) func;
timer->data = (void *) data;
to post comments)