Re: options release build will be compiled with


Subject: Re: options release build will be compiled with
From: Sam TH (sam@uchicago.edu)
Date: Wed Nov 22 2000 - 13:04:24 CST


On Wed, Nov 22, 2000 at 09:45:38PM +0400, Vlad Harchev wrote:
> On Wed, 22 Nov 2000, Sam TH wrote:
>
> > On Wed, Nov 22, 2000 at 08:39:01PM +0400, Vlad Harchev wrote:
> > >
> > > Hi,
> > >
> > > I'm curious whether release build will be compiled with debug enabled or
> > > not. I think that in order to improve perceived quality of AW all asserts
> > > should be turned to noops (that don't ask for confirmation and don't
> > > terminate AW). Otherwise I think AW will get bad reputation terminating each
> > > time excessive assert is violated.
> > >
> > > What do you think about this?
> >
> > Binary releases never have debug options enabled. Therefore, no one
> > who uses a binary release will see the asserts.
>
> Will AW just terminate if assert if violated or it will just ignore assertion
> violation (2nd is much more preferred IMO)?

The relevant code from ut_assert.h

# ifdef NDEBUG

                // When NDEBUG is defined, assert() does nothing.
                // So we let the system header files take care of it.

# include <assert.h>
# define UT_ASSERT assert

It does nothing.

           
        sam th
        sam@uchicago.edu
        http://www.abisource.com/~sam/
        GnuPG Key:
        http://www.abisource.com/~sam/key




This archive was generated by hypermail 2b25 : Wed Nov 22 2000 - 13:04:34 CST