public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: comeau@panix.com (Greg Comeau)
To: help-gcc@gnu.org
Subject: Re: how to declare dynamic 2-dimensional array in C++?
Date: Mon, 03 Jan 2000 11:04:00 -0000	[thread overview]
Message-ID: <84qris$6j7$1@panix.com> (raw)
In-Reply-To: <3870E536.5A00FA79@earthlink.net>

In article < 3870E536.5A00FA79@earthlink.net > Martin Ambuhl <mambuhl@earthlink.net> writes:
>"Johnny Favorite (it means \"Writhing Tentacle of Death\")" wrote:
>> Alex Vinokur wrote:
>> > 3. __PRETTY_FUNCTION__
>> >     --FUNCTION__
>> 
>> Since your other two examples were pretty cool-sounding I have to ask about
>> this one.  What the heck does __PRETTY_FUNCTION__ do?
>
>File: gcc.info,  Node: Function Names,  Next: Return Address,  Prev:
>Incomplete Enums,  Up: C Extensions
>
>Function Names as Strings
>=========================
>
>   GNU CC predefines two string variables to be the name of the current
>function.  The variable `__FUNCTION__' is the name of the function as
>it appears in the source.  The variable `__PRETTY_FUNCTION__' is the
>name of the function pretty printed in a language specific fashion.

BTW, C99 now support an __func__ predefined variable to do this.

- Greg
-- 
       Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418-3214
          Producers of Comeau C/C++ 4.2.42 -- NOTE 4.2.42 NOW AVAILABLE
    Email: comeau@comeaucomputing.com / Voice:718-945-0009 / Fax:718-441-2310
                *** WEB: http://www.comeaucomputing.com *** 

WARNING: multiple messages have this Message-ID
From: comeau@panix.com (Greg Comeau)
To: help-gcc@gnu.org
Subject: Re: how to declare dynamic 2-dimensional array in C++?
Date: Sat, 01 Apr 2000 00:00:00 -0000	[thread overview]
Message-ID: <84qris$6j7$1@panix.com> (raw)
Message-ID: <20000401000000.Fb2WAP7mmC5jSi-Nq4pD_bwbikX4yObTrvn9ZKYWB2I@z> (raw)
In-Reply-To: <3870E536.5A00FA79@earthlink.net>

In article < 3870E536.5A00FA79@earthlink.net > Martin Ambuhl <mambuhl@earthlink.net> writes:
>"Johnny Favorite (it means \"Writhing Tentacle of Death\")" wrote:
>> Alex Vinokur wrote:
>> > 3. __PRETTY_FUNCTION__
>> >     --FUNCTION__
>> 
>> Since your other two examples were pretty cool-sounding I have to ask about
>> this one.  What the heck does __PRETTY_FUNCTION__ do?
>
>File: gcc.info,  Node: Function Names,  Next: Return Address,  Prev:
>Incomplete Enums,  Up: C Extensions
>
>Function Names as Strings
>=========================
>
>   GNU CC predefines two string variables to be the name of the current
>function.  The variable `__FUNCTION__' is the name of the function as
>it appears in the source.  The variable `__PRETTY_FUNCTION__' is the
>name of the function pretty printed in a language specific fashion.

BTW, C99 now support an __func__ predefined variable to do this.

- Greg
-- 
       Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418-3214
          Producers of Comeau C/C++ 4.2.42 -- NOTE 4.2.42 NOW AVAILABLE
    Email: comeau@comeaucomputing.com / Voice:718-945-0009 / Fax:718-441-2310
                *** WEB: http://www.comeaucomputing.com *** 

  reply	other threads:[~2000-01-03 11:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <386da233.0@news.tm.net.my>
     [not found] ` <84n59m$daj$1@nnrp1.deja.com>
     [not found]   ` <386fac89@eeyore.callnetuk.com>
2000-01-02 21:35     ` Alex Vinokur
2000-01-03  3:55       ` Johnny Favorite (it means "Writhing Tentacle of Death")
2000-01-03 10:16         ` Martin Ambuhl
2000-01-03 11:04           ` Greg Comeau [this message]
2000-04-01  0:00             ` Greg Comeau
2000-01-04  4:24           ` Johnny Favorite (it means "Writhing Tentacle of Death")
2000-04-01  0:00             ` Johnny Favorite (it means "Writhing Tentacle of Death")
2000-04-01  0:00           ` Martin Ambuhl
2000-01-04  5:55         ` __PRETTY_FUNCTION__, functions and templates Alex Vinokur
2000-04-01  0:00           ` Alex Vinokur
2000-04-01  0:00         ` how to declare dynamic 2-dimensional array in C++? Johnny Favorite (it means "Writhing Tentacle of Death")
2000-04-01  0:00       ` Alex Vinokur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='84qris$6j7$1@panix.com' \
    --to=comeau@panix.com \
    --cc=help-gcc@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).