From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-id: <84qris$6j7$1@panix.com> References: <84pbp4$j4t$1@nnrp1.deja.com> <84pus001rnr@enews2.newsguy.com> <3870E536.5A00FA79@earthlink.net> X-SW-Source: 2000-01/msg00025.html In article < 3870E536.5A00FA79@earthlink.net > Martin Ambuhl 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 *** From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-ID: <84qris$6j7$1@panix.com> References: <84pbp4$j4t$1@nnrp1.deja.com> <84pus001rnr@enews2.newsguy.com> <3870E536.5A00FA79@earthlink.net> X-SW-Source: 2000-q1/msg00025.html Message-ID: <20000401000000.Fb2WAP7mmC5jSi-Nq4pD_bwbikX4yObTrvn9ZKYWB2I@z> In article < 3870E536.5A00FA79@earthlink.net > Martin Ambuhl 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 ***