Annotation of coherent/d/etc/fsck/assert.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * assert.h
                      3:  * C diagnostics header.
                      4:  * Draft Proposed ANSI C Standard, Section 4.2, 12/7/88 draft.
                      5:  *
                      6:  * Special copy to replace fprintf() with printf()
                      7:  */
                      8: #ifndef        ASSERT_H
                      9: #define        ASSERT_H        ASSERT_H
                     10: 
                     11: #if    NDEBUG
                     12: #define        assert(p)
                     13: #else
                     14: #include <stdio.h>
                     15: #define        assert(p)       if (!(p)) {\
                     16:                                printf("%s: %d: assert(%s) failed.\n",\
                     17:                                        __FILE__, __LINE__, #p);\
                     18:                                exit(1);\
                     19:                        }
                     20: #endif
                     21: #endif
                     22: /* end of assert.h */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.