Re: The evil of __FUNCION__



On Fri, Sep 01, 2000 at 12:08:27PM +1200, Simon Britnell wrote:
> __FUNCTION__  doesn't appear to be supported by the IRIX-6.5 C
> compiler.  I guess this should be dealt with by a patch to autoconf.
> Anyone have a better idea than:
> 
> #define __FUNCTION__ "unknown_function_name"

On Tru64 I usually use a configure line of

    env CFLAGS='-D__FUNCTION__=__func__ -D__PRETTY_FUNCTION=__func__' \
	CPPFLAGS=-I/usr/local/include \
	LDFLAGS=-L/usr/local/lib \
	./configure

I've just scanned the SGI manual pages and developer's
documentation... It looks like there is no equivalent for the IRIX C
compiler.  Your best bet is probably to use a configure line similar
to above, but using "unknown_function_name" (with some list of
backslashes to escape the quotes).

Aron

-- 
Aron Griffis                  
Tru64 UNIX Platform & Kernel
Compaq Computer Corporation, ZKO3-3/T30





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