Re: g_return_if_fail() breakage

Am Die, 2002-11-26 um 20.58 schrieb Matthias Clasen:
> I went ahead and changed the definitions of g_assert() and
> g_return_[val_]if_fail() to use G_LIKELY only if it is actually
> doing something. Otherwise, the old definition is used. 

Still no joy, sorry :(

With the latest code, the debug message doesn't include
__PRETTY_FUNCTION__ when using gcc < 3 or optimization is disabled.

Ron's _G_LIKELY_PRIVATE() is probably more appropriate.


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