Re: /bzr/squid3/trunk/ r10080: Portability fix: __FUNCTION__ is not available on all preprocessors.

From: Kinkie <gkinkie_at_gmail.com>
Date: Thu, 5 Nov 2009 01:00:02 +0100

It seems to work with __PRETTY_FUNCTION__ a few lines below, and it builds... :)
I'd guess that it works exactly because it's a magic variable, and
thus its binding is delayed to a later moment in the parsing chain.

On Thu, Nov 5, 2009 at 12:09 AM, Henrik Nordstrom
<henrik_at_henriknordstrom.net> wrote:
> ons 2009-11-04 klockan 17:20 +0100 skrev Francesco Chemolli:
>
>>   Portability fix: __FUNCTION__ is not available on all preprocessors.
>
>> +#ifdef __FUNCTION__
>> +#define _SQUID__FUNCTION__ __FUNCTION__
>
> Do this really work?
>
> __FUNCTION__ is not a preprocessor symbol, it's a magic compiler
> variable.
>
> Regards
> Henrik
>
>

-- 
    /kinkie
Received on Thu Nov 05 2009 - 00:00:09 MST

This archive was generated by hypermail 2.2.0 : Thu Nov 05 2009 - 12:00:05 MST