MC_ARG_ENABLE_DEVELOPER_MODE

Pavel Roskin proski at gnu.org
Fri May 20 14:24:44 UTC 2005


Hi, Roland!

> > Also, NDEBUG is documented in glibc.info - 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.

-- 
Regards,
Pavel Roskin




More information about the mc-devel mailing list