4 ms·
You're not passing a compound statement expression as a function pointer. You are passing the result of the evaluation of that expression --which is a function
by ori_b 15y ago
You're not passing a compound statement expression as a function pointer. You are passing the result of the evaluation of that expression --which is a function pointer -- as a function pointer.
- tjr 15y agoOops, sorry, I just deleted my comment because I thought that wingo's comment covered my thoughts and more. For posterity, I had previously written: I do not find it obvious from that documentation that you can pass a compound statement expression as a function pointer. And touche', I just glanced at the contents of the macro before replying.