🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3889

Re: __FUNC__ vs __FUNCTION__

#3889
From: Fergus Henderson
Date: Sat, 26 Aug 1995 19:12
15 lines
1366 bytes
eggert@twinsun.com (Paul Eggert) writes:

>One possible advantage of the "\<function>" syntax is its backward
>compatibility: it would work with traditional C compilers without change,
>though it would just yield `<function>' instead of the function name.

Backwards compatibility wouldn't cause much trouble with the __FUNC__
syntax either: if the compiler doesn't support it, just compile with
-D__FUNC__="<function>" or -D__FUNC__="" or the equivalent.

-- 
Fergus Henderson              | Designing grand concepts is fun;
fjh@cs.mu.oz.au               | finding nitty little bugs is just work.
http://www.cs.mu.oz.au/~fjh   | -- Brooks, in "The Mythical Man-Month".
PGP key fingerprint: 00 D7 A2 27 65 09 B6 AC  8B 3E 0F 01 E7 5D C4 3F
Technical Details
Message-ID: <9523905.7157@mulga.cs.mu.OZ.AU>
Path: arc1-ca.pugleaf.net!munta.cs.mu.OZ.AU!fjh
References: <3udssr$32j@info1.sdrc.com> <3uu5an$ohi@info1.sdrc.com> <1995Jul25.180413.3420@news.wrc.xerox.com> <HBF.95Aug1194442@durin.uio.no> <40t0k3$pom@tornews.torolab.ibm.com> <40t7k0$3r4@light.twinsun.com> <HBF.95Aug18083732@durin.uio.no> <4133ie$706@tattoo.twinsun.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!munta.cs.mu.OZ.AU!fjh
From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
Subject: Re: __FUNC__ vs __FUNCTION__
Message-ID: <9523905.7157@mulga.cs.mu.OZ.AU>
Sender: news@cs.mu.OZ.AU (CS-Usenet)
Organization: Computer Science, University of Melbourne, Australia
References: <3udssr$32j@info1.sdrc.com> <3uu5an$ohi@info1.sdrc.com>  <1995Jul25.180413.3420@news.wrc.xerox.com>  <HBF.95Aug1194442@durin.uio.no> <40t0k3$pom@tornews.torolab.ibm.com>  <40t7k0$3r4@light.twinsun.com> <HBF.95Aug18083732@durin.uio.no> <4133ie$706@tattoo.twinsun.com>
Date: Sat, 26 Aug 1995 19:12:22 GMT