Do any of the compilers we care about not support __func__ or __FUNCTION__?

Jeremy Allison jra at samba.org
Thu Jul 19 13:38:40 MDT 2012


On Thu, Jul 19, 2012 at 02:25:13PM -0500, Christopher R. Hertel wrote:
> More than 10 years ago, I rewrote the Debug module to include __func__ if it
> was available.  If __func__ isn't available on a platform, it *should*
> simply be ignored.  Some of the code that has the function name hard-coded
> is probably from that era--stuff that wasn't cleaned up--or code added by
> folks who didn't know that the function name was automatically included.

Nah. I still add it in new code due to force of habit :-).


More information about the samba-technical mailing list