[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: assert in release is available on windows

From: <brane_at_xbc.nu>
Date: 2003-11-17 13:54:25 CET

Quoting Barry Scott <barry@barrys-emacs.org>:

> At 17-11-2003 07:26, =?ISO-8859-2?Q?Branko_=C8ibej?= wrote:
> >Windows, because MS in its wisdom thinks it shouldn't be done (witness
> >the fact that support for "assert()" is absent in the release version of
> >the C runtime library). On the other hand, they give you DrWatson, which
> >is quite useless without debug info.
>
> You control assert with the NDEBUG macro. If defined the asserts disappear,
> which is the default for release build. This is same on Unix and Windows.

Really? Wow! Hey, can you also tell me what those '*' things measn in C programs?

O.K., sarcastic mode's off now.

Barry, please read what I wronte before trying to teach me C. In MSVC, the
"assert" macro is implemented as a call to a support function. That function is
not available in the Release version of the MS C runtime library, which means
that _not_ defining NDEBUG _and_ linking against the release library won't work.

Your example "works" because, without any options, the compiler will tell the
linker to use the debug library.

    Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 17 13:56:19 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.