The timer API: size or type safety?
Posted Dec 8, 2006 19:42 UTC (Fri) by
jzbiciak (
✭ supporter ✭, #5246)
In reply to:
The timer API: size or type safety? by giraffedata
Parent article:
The timer API: size or type safety?
Are you certain? Let's look at that closely:
typeof(*data) *p = data;
timer->function = (void (*)(void *)) func;
timer->data = (void *) p;
(void)(0 && (func(p), 0));
I guess your statement is that the last line, (func(p)) could be rewritten as (func(data)) instead. I can see that.
(
Log in to post comments)