Do any of the compilers we care about not support __func__ or __FUNCTION__?
jra at samba.org
Thu Jul 19 11:40:12 MDT 2012
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
More information about the samba-technical