Am 31.12.2002 17:39:07, schrieb "Mark Stokes" <[email protected]>:

>Thanks, and ya, I do like that macro.  I found it in iomacros.h (and I
>had to add a '_' to the beginning).

yep, sorrry for beeing not so precise. i have added that macro but i haven't
used it in a while...

>I'm getting the following error:
>"it400a.c:364: warning: concatenation of string literals with
>__FUNCTION__ is deprecated"
>I can ignore it, but is there a way to avoid it?

hm. i found the following mail:
http://mail.nl.linux.org/kernelnewbies/2002-10/msg00389.html

but then in an other message i read 
"""
* __func__ is not a string literal and should not take part in string
  concatenation.
"""
and __func__ would be the replacement for __FUNCTION__ ...

details here:
http://gcc.gnu.org/onlinedocs/gcc-3.2.1/gcc/Function-Names.html#Function%20Names

there is the -Wno-deprecated-declarations command line option that looks like 
it would
disable that warning.

hm... looks like it's valid to use __FUNCTION__ in the future (the linux kernel 
seems to use
it also in the future) and i have not found an other short way to get the frame 
address
(there is also a special function for that, but that adds code)

chris





Reply via email to