my bad, I thought cpp(1) implemented __FUNCTION__...

On Thu, Nov 18, 2010 at 11:06 PM, Joel C. Salomon
<joelcsalo...@gmail.com> wrote:
> On 11/18/2010 05:50 PM, Federico G. Benavento wrote:
>> On Thu, Nov 18, 2010 at 2:30 AM, Joel C. Salomon <joelcsalo...@gmail.com> 
>> wrote:
>>> Why is __func__ listed as “unwanted”?  I’ve found it useful for some
>>> logging functions.
>>>
>> isn't this redundant with cpp(1)'s __FUNCTION__?
>>
>> if __FUNCTION__ isn't standard, then we should change
>> it to __func__ in cpp and that's it
>
> Um, how can the preprocessor know what function it’s in middle of?
>
> (That’s why, unlike the preprocessor symbols __FILE__ & __LINE__, C99’s
> __func__ is an identifier.)
>
> --Joel
>
>



-- 
Federico G. Benavento

Reply via email to