freetype-devel
[Top][All Lists]
Advanced

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

Re: [freetype2] anuj-distance-field fdf4191: [sdf] Added memory tracker.


From: Werner LEMBERG
Subject: Re: [freetype2] anuj-distance-field fdf4191: [sdf] Added memory tracker.
Date: Sat, 18 Jul 2020 16:49:09 +0200 (CEST)

>> Having two versions would also allow to use a function internally
>> so that you can (a) avoid the `do {} while (0)` construction, and
>> (b) still use the macro within a conditional.
> 
> I thought about that, but if we create a function then the memory
> dump won't print the actual line number and that might make it
> harder to find memory leaks.

OK.  What about passing `__LINE__` then?


    Werner



reply via email to

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