Mercurial > flash_v2
diff packages/isoinfra/current/include/assert.h @ 119:77cec8369160 ecos-sw-2000-09-01
Merge from eCos master repository on 2000-09-01-07:47:03-BST
| author | jlarmour |
|---|---|
| date | Fri, 01 Sep 2000 13:45:23 +0000 |
| parents | 6ed91473a1cd |
| children | e0c0827131d1 |
line wrap: on
line diff
--- a/packages/isoinfra/current/include/assert.h +++ b/packages/isoinfra/current/include/assert.h @@ -71,7 +71,7 @@ # define assert( __bool ) \ do { \ - if (0 != (__bool)) { \ + if (0 == (__bool)) { \ fprintf( stderr, "User assertion failed: \"%s\", at %s:%d\n", \ #__bool, __FILE__, __LINE__); \ abort(); \ @@ -95,7 +95,7 @@ # define assert( __bool ) \ do { \ - if (0 != (__bool)) { \ + if (0 == (__bool)) { \ diag_printf( "User assertion failed: \"%s\", at %s:%d\n", \ #__bool, __FILE__, __LINE__); \ for (;;); \
