Do any of the compilers we care about not support __func__ or __FUNCTION__?
idra at samba.org
Thu Jul 19 12:10:39 MDT 2012
On Thu, 2012-07-19 at 10:40 -0700, Jeremy Allison wrote:
> On Thu, Jul 19, 2012 at 09:35:09AM -0700, Richard Sharpe wrote:
> > Hi folks,
> > I am sick of seeing things like:
> > DEBUG(5,("read_fd_with_timeout: "
> > "blocking read. EOF from client.\n"));
> > return NT_STATUS_END_OF_FILE;
> > where the name of the calling function has been laboriously typed in
> > ... and there have been cases where code has been moved around and the
> > function name not corrected.
> > Are there compilers we care about that do not support __func__ or
> > equivalent? I would think not because we depend on something like that
> > and __line__ in the DEBUG macros.
> I am the worst offender here. If we can truly depend on __func__
> or __line__ then I'll go on parole and promise to stop doing it
> again :-).
You already said that earlier, can we trust you double swear you
stop ? :-)
Samba Team GPL Compliance Officer <simo at samba.org>
Principal Software Engineer at Red Hat, Inc. <simo at redhat.com>
More information about the samba-technical