Hi,

> > BTW: Please don't use __FUNCTION__ outside of #ifdef (__GNUC__) blocks. I
> > like it as much as you do, but some compilers disagree.
> 
> How about doing 
> 
> #ifndef __GNUC__
> #define __FUNCTION__ "<UNKNOWN FUNCTION>" 
> #endif
> 
> or similar?

Some compilers, such as DEC/Compaq's ccc, provide the __FUNCTION__ macro,
but not __GNUC__; this might cause problems. We don't really need
__FUNCTION__ anywhere, and in the places where it might be convenient, we
can usually use GFXDEBUG/GFXWARN/GFXERROR (gfx subsystem) or
SCIkwarn/SCIkdebug (kernel) instead.

llap,
 Christoph


Reply via email to