Rev 999 | Rev 1143 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 999 | Rev 1113 | ||
---|---|---|---|
Line 534... | Line 534... | ||
534 | #ifndef LACKS_STDLIB_H |
534 | #ifndef LACKS_STDLIB_H |
535 | #include <stdlib.h> /* for abort() */ |
535 | #include <stdlib.h> /* for abort() */ |
536 | #endif /* LACKS_STDLIB_H */ |
536 | #endif /* LACKS_STDLIB_H */ |
537 | #ifdef DEBUG |
537 | #ifdef DEBUG |
538 | #if ABORT_ON_ASSERT_FAILURE |
538 | #if ABORT_ON_ASSERT_FAILURE |
539 | #define assert(x) if(!(x)) ABORT |
539 | #define assert(x) {if(!(x)) {printf(#x);ABORT;}} |
540 | #else /* ABORT_ON_ASSERT_FAILURE */ |
540 | #else /* ABORT_ON_ASSERT_FAILURE */ |
541 | #include <assert.h> |
541 | #include <assert.h> |
542 | #endif /* ABORT_ON_ASSERT_FAILURE */ |
542 | #endif /* ABORT_ON_ASSERT_FAILURE */ |
543 | #else /* DEBUG */ |
543 | #else /* DEBUG */ |
544 | #define assert(x) |
544 | #define assert(x) |