Re: [PATCH 1/2] local-metadata: add series support



On Mon, Mar 14, 2011 at 9:13 PM, Guillaume Emont <gemont igalia com> wrote:
>> +  GRL_DEBUG ("%s", __FUNCTION__);
>
> Just a note for later discussion: most code uses the function name
> "written by hand" for this, some uses __FUNCTION__ and some uses
> __func__. I think we should try to be more consistent on that. GCC's
> documentation recommends[2] the use of __func__ with a #define if we're
> not using C99, I don't know how other compilers handle
> __func__/__FUNCTION__ or friends.
>
> [2] http://gcc.gnu.org/onlinedocs/gcc/Function-Names.html

I would just use G_STRFUNC, it should solve stuff for you.

-- 
Damien


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