__builtin_FUNCTION () returns __FUNCTION__ of its invoker.


Any thoughts about extending it to provide:
a) the qualified name of the caller
b) the full signature of the invoker (__PRETTY_FUNCTION__)

we could do this with another __builtin, or permitting __builtin_FUNCTION to take an optional (or defaulted?) constant arg. Something like:
__builtin_FUNCTION () -> current behavior
__builtin_FUNCTION (0) -> as current
__builtin_FUNCTION (1) -> as qualified name
__builtin_FUNCTION (2) -> as __PRETTY_FUNCTION__

thoughts?

nathan

--
Nathan Sidwell

Reply via email to