[Top][All Lists]

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

Re: [avr-gcc-list] Want to place __func__ in program memory

From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Want to place __func__ in program memory
Date: Mon, 30 Apr 2012 08:24:40 +0200 (MET DST)

Wim Lewis <address@hidden> wrote:

> I had thought that __FUNCTION__ and __PRETTY_FUNCTION__ acted like
> string literals and could be used this way, but I just tested and they
> seem to act like __func__.

__FUNCTION__ just predates the (C99) standardized __func__ but is
otherwise the same.  Thus, it's not surprising that
__PRETTY_FUNCTION__ works the same way.

As this is debugging-only stuff, the way around is probably to just
use a CPU with enough RAM for debugging.
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]