|
|
1.1 ! root 1: /* (-lgl ! 2: * COHERENT Version 3.2 ! 3: * Copyright (c) 1982, 1991 by Mark Williams Company. ! 4: * All rights reserved. May not be copied without permission. ! 5: -lgl) */ ! 6: /* ! 7: * assert.h ! 8: * C diagnostics header. ! 9: * Draft Proposed ANSI C Standard, Section 4.2, 12/7/88 draft. ! 10: */ ! 11: ! 12: #ifndef ASSERT_H ! 13: #define ASSERT_H ASSERT_H ! 14: ! 15: #if NDEBUG ! 16: #define assert(p) ! 17: #else ! 18: #include <stdio.h> ! 19: #define assert(p) if (!(p)) {\ ! 20: fprintf(stderr, "%s: %d: assert(%s) failed.\n",\ ! 21: __FILE__, __LINE__, #p);\ ! 22: exit(1);\ ! 23: } ! 24: #endif ! 25: #endif ! 26: ! 27: /* end of assert.h */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.