🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #505

Re: Nombre de una funcion

#505
From: Luis Angel Fdez. Fdez.
Date: Mon, 24 Dec 2007 08:08
36 lines
2510 bytes
	A las 00:26 del Monday 24 de December, 
	Luis Colorado <luis.colorado@hispalinux.es> 
	hablando de Re: Nombre de una funcion 
	en es.comp.os.linux.programacion dijo...

>
> "Iv�n S�nchez Ortega" <ivansanchez-alg@rroba-escomposlinux.-.punto.-.org> escribi� en el mensaje news:fkhnn2$dls$1@hercules.cohp1...
>> Pere Pujal i Carabantes wrote:
>> 
>>> Cuando se llama a un script bash, $0 nos da el nombre del script.
>>> 
>>> Existe algo similar para una funcion en C que nos de el nombre
>>> de la funcion?
>> 
>> Te acabas de ganar un STFW & RTFM:
>> 
>> http://www.delorie.com/gnu/docs/gcc/gcc_78.html
>
> Creo que la macro __FUNCTION__ est� `deprecated' si no
> `obsolete' y ya no se puede usar.

  Seg�n parece, en ello est�n.

  De todas formas, puede (debe) utilizarse, en caso de que el
  compilador ya lo soporte: __func__

  Seg�n he leido, y si no lo entend� mal, __func__ *no* es una
  macro.

  Ta llueu.

-- 
Ubuntu 7.10 (gutsy) (kernel 2.6.22-14-386 i686) GNOME 2.20.1
Intel(R) Pentium(R) M processor (600.000 MHz) up 23:26, 2 users
HT: Zanzaborn�n (1457021) X.1762  # http://muxin.no-ip.org/
SK: C.D. Arrancatapinos (18088) IV.57   # Jabber: laffdez@gmail.com
Technical Details
Message-ID: <fknpdj$n5v$1@hercules.cohp1>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!83.128.0.11.MISMATCH!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!chloor.box.nl!217.188.199.138.MISMATCH!storethat.news.telefonica.de!telefonica.de!news.antakira.com!cagarruta.escomposlinux.org!hercules.escomposlinux.org!escomposlinux.org!not-for-mail
References: <slrnfmodjn.v4d.pere@hola.fou.net> <fkhnn2$dls$1@hercules.cohp1> <fkmubh$hd0$1@nsnmrro2-gest.nuria.telefonica-data.net>

Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,bb0a650afb4eecda
X-Google-Attributes: gidf86c8,public,usenet
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!83.128.0.11.MISMATCH!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!chloor.box.nl!217.188.199.138.MISMATCH!storethat.news.telefonica.de!telefonica.de!news.antakira.com!cagarruta.escomposlinux.org!hercules.escomposlinux.org!escomposlinux.org!not-for-mail
From: "Luis Angel Fdez. Fdez." <laffdez@gmail.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Nombre de una funcion
Date: Mon, 24 Dec 2007 09:08:19 +0100
Organization: escomposlinux.org
Lines: 36
Message-ID: <fknpdj$n5v$1@hercules.cohp1>
References: <slrnfmodjn.v4d.pere@hola.fou.net> <fkhnn2$dls$1@hercules.cohp1> <fkmubh$hd0$1@nsnmrro2-gest.nuria.telefonica-data.net>
Reply-To: laffdez@gmail.com
NNTP-Posting-Host: 183.red-80-24-192.staticip.rima-tde.net
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8bit
X-Trace: hercules.cohp1 1198483700 23743 80.24.192.183 (24 Dec 2007 08:08:20 GMT)
X-Complaints-To: newsmaster@news-17.escomposlinux.org
NNTP-Posting-Date: Mon, 24 Dec 2007 08:08:20 +0000 (UTC)
User-Agent: slrn/0.9.8.1pl1 (Debian)