[Flac-dev] FLAC/assert.h overwrites /usr/include/assert.h?

Josh Coalson xflac at yahoo.com
Wed Jul 10 23:26:02 PDT 2002


--- Brady Patterson <brady at spaceship.com> wrote:
> I'd still like to know why FLAC__ASSERT() is necessary.  K&R is very
> clear that
> the preprocessor is to remove calls to assert() if NDEBUG is defined.
>  (Some
> compilers, including gcc, implicitly define NDEBUG when optimizing,
> but of
> course it can also be explicitly defined, which is in fact done by
> default by
> configure.in .)  So, does MSVC's assert.h just not have the
> appropriate
> #ifdef NDEBUG ?  Or am I missing something?

that wasn't enough on my MSVC setup to keep the compiler
from including assert()ions on NDEBUG compiles.  I can't
stand reverse engineering MSFT things like that so I did
FLAC__ASSERT and was done with it.

Josh


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com




More information about the Flac-dev mailing list