Hi, Roland!

> > Also, NDEBUG is documented in - it disables assert().  I
> > don't think it's a good idea.  Failed assertions should terminate the
> > program.  In my opinion, the only exception is when they are placed by
> > somebody with the purpose of understanding how the program works.  Then
> > other users wouldn't need those particular asserts to terminate the
> > program.
> please
>      (GNU) grep -wr assert mc
> and see what assert() is used for.

Why don't you use g_assert* functions like the rest of the code does?
Their behavior can be controlled by environment variables (if I remember
correctly), which is much more convenient than a hardcoded choice.

Pavel Roskin

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