bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: __func__


From: Bruno Haible
Subject: Re: __func__
Date: Thu, 28 Feb 2008 21:43:06 +0100
User-agent: KMail/1.5.4

Hi Simon,

> What do you think?

The module is a worthy addition.

> I was unsure where to document this, it isn't either a function or
> header file, strictly speaking.

I would put its documentation in chapter "Particular modules". If/when
the 'inline' module gets documented, one might combine these into a chapter
"Compiler Characteristics".

>   AH_VERBATIM(__FUNC__, [
> #if __STDC_VERSION__ < 199901L

Tests of __STDC_VERSION__ are often wrong, in either direction. A autoconf
test is more likely to be right everywhere.

Also, how about a unit test? It can be as simple as

  int
  main ()
  {
    ASSERT (strlen (__func__) + 1 == sizeof (__func__));
    return 0;
  }

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]