[Top][All Lists]

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

Re: inlinable functions instead of macros

From: Paul Eggert
Subject: Re: inlinable functions instead of macros
Date: Sat, 25 Aug 2012 22:31:28 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0

On 08/24/2012 07:05 PM, Stefan Monnier wrote:
> I've never needed to use ASET from GDB

I guess our debugging styles differ.  But this issue is moot
now that -g3 is the default.

>>    /* The IDX==IDX tries to detect when the macro argument is 
>> side-effecting.  */
>>    #define ASET(ARRAY, IDX, VAL)     \
>>       (eassert ((IDX) == (IDX)),                             \
> This should be removed indeed.

That's easy, and I did that in trunk bzr 109780.

>> +    Reimplement in terms of eassert_f,...
> I'd rather avoid these kinds of efforts,

Me too.  I'd rather rely on the new execinfo stuff.
Perhaps after you've had a chance to give execinfo a try,
we can see whether we can improve matters further
in this area.

reply via email to

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