I see __PRETTY_FUNCTION__ used a lot in answers to questions on this site, and I understand the usefulness of this function, but why exactly is it called __PRETTY_FUNCTION__?  It's not an ugly function, but it's not exactly pretty either.
I think it is called __PRETTY_FUNCTION__ because it is a "decorated" __FUNCTION__ (at least in C++, in C they are both equivalent). In C++, the return type and the parameters type are also displayed.
Note that both __PRETTY_FUNCTION__ and __FUNCTION__ are not C but GNU C. __func__ is C.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With