preprocessor constant which names the current function (like __FILE__)

Henry Spencer henry at utzoo.uucp
Sat Feb 10 05:20:36 AEST 1990


In article <25D1A098.493B at marob.masa.com> daveh at 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 at zoo.toronto.edu



More information about the Comp.lang.c mailing list