Mercurial > ecos-v2_0-branch
diff packages/language/c/libc/current/include/assert.h @ 34:29bc183297e1 ecos-sw-1999-09-02
Merge from eCos master repository on 1999-09-02-16:26:10-BST
| author | jlarmour |
|---|---|
| date | Thu, 02 Sep 1999 16:11:22 +0000 |
| parents | 443894e2e912 |
| children | c38311975d4f |
line wrap: on
line diff
--- a/packages/language/c/libc/current/include/assert.h +++ b/packages/language/c/libc/current/include/assert.h @@ -56,21 +56,21 @@ // MACROS -// The user should define NDEBUG to turn on these user assertions. Also the -// common infrastructure assertions should be turned on too. +// The user should define NDEBUG to turn off these user assertions. Also the +// common infrastructure assertions should be turned off too. -#ifndef NDEBUG +#ifdef NDEBUG # define assert( _bool_ ) ((void)0) -#else // if NDEBUG is defined +#else // if NDEBUG is NOT defined # define assert( _bool_ ) \ CYG_MACRO_START \ CYG_ASSERT( _bool_, "User assertion failed: \"" # _bool_ "\"" ); \ CYG_MACRO_END -#endif // if NDEBUG is defined +#endif // if NDEBUG is NOT defined
