[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BUG()



On Fri, Jul 02, 2004 at 22:50:25 +0530, Anupam Kapoor wrote:
> > 2. Where does the compiler get those __LINE__ and __FILE__ from?
> they are gcc specific. i know of __FUNCTION__ which provides the
> function name. i am sure there are others too...

NO! They are ANSI C!

__FUNCTION__ is a GCC extension. __func__ is similar extension in C99.

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@xxxxxx>

Attachment: signature.asc
Description: Digital signature