Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: preprocessor constant which names the current function (like __FILE__)
Message-ID: <1990Feb9.182036.24706@utzoo.uucp>
Organization: U of Toronto Zoology
References: <25D1A098.493B@marob.masa.com>
Date: Fri, 9 Feb 90 18:20:36 GMT

In article <25D1A098.493B@marob.masa.com> daveh@marob.masa.com (Dave Hammond) writes:
>Given that the C preprocessor definitions __FILE__ and __LINE__ specify
>the current source module and line, is there an analagous definition for
>the current source function (eg __FUNCTION__) ?

No.  Not unless it's a non-standard extension in the only compiler you
ever plan to use.
-- 
SVR4:  every feature you ever |     Henry Spencer at U of Toronto Zoology
wanted, and plenty you didn't.| uunet!attcan!utzoo!henry henry@zoo.toronto.edu
