Re: [gtk-list] Re: g_assert() and consorts into {}?

On  3 Dec, Owen Taylor wrote:
>> i'd like to see all the macros around g_assert () (return_if_fail...),
>> to be enclosed by {}.
I have an other question about g_assert():

assert() from <assert.h> is defined as:

/* void assert (int expression);

   If NDEBUG is defined, do nothing.
   If not, and EXPRESSION is zero, print an error message and abort.  */

#ifdef  NDEBUG

#define assert(expr)            ((void) 0)

why is this not done with g_assert ? 


Marcus Denker               Weechstr. 1 E103           76131 Karlsruhe

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