tir, 06.05.2003 kl. 01.01 skrev Alexandre Julliard:
Ove Kaaven ovek@arcticnet.no writes:
Hmm. That could be solved by making the try block a nested function too, but I suppose that would bring some overhead...
Even ignoring the overhead, I can't think of a way to declare that function with the right return type. But maybe I missed something...
Hmm, true. I thought it might be possible to do some magic like typeof(func()), but then you'd need to know the name of the function, and I can't seem to find a gcc builtin that'll retrieve a reference to the current function (or its return type). Anyone else have any ideas? (No, __FUNCTION__ is a string, so it's no good.)