RFC: __FUNCTION__ and __PRETTY_FUNCTION__

Joseph S. Myers jsm28@cam.ac.uk
Sun Dec 9 11:48:00 GMT 2001


On Sun, 9 Dec 2001, Neil Booth wrote:

> So, since g++ does not concatenate these, and it makes moving string
> concatenation out of the parser difficult, I would like to propose
> changing the documentation to state that they do not concatenate.

I think we should make them follow the C99 definition of __func__.
You'll need to decide whether they should be three distinct objects even
if their contents are all the same; they probably should (be distinct from
each other and from string literals) for consistency with __func__.

-- 
Joseph S. Myers
jsm28@cam.ac.uk



More information about the Gcc mailing list