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 23:23:05 +0100
User-agent: KMail/1.5.4

Simon Josefsson wrote:
> If there are other pre-C99 compilers that use other ways of printing the
> function name, I suppose the module could be extended with those.

According to boost/current_function.hpp, it appears that
  - GNU C is not the only compiler to support __PRETTY_FUNCTION__;
    Metrowerks and Intel icc may do the same.
  - Some Intel compilers and some IBM compilers may support __FUNCTION__.

But this info may be out of date. Here's what I verified:

  - Intel icc version 9.1 supports __func__, __FUNCTION__, __PRETTY_FUNCTION__,
    like GNU C does. And it does not define __STDC_VERSION__.

  - HP-UX 11 cc supports __func__, __FUNCTION__. And it does not define
    __STDC_VERSION__ either.

Bruno





reply via email to

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