assert.h 423 B

12345678910111213141516171819202122
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. /* $Id$ */
  6. #ifndef lint
  7. #ifdef NASSERT
  8. #define assert(ex)
  9. #else /* NASSERT */
  10. #define assert(ex) \
  11. {if (!(ex)) fatal("Assertion failed: file %s, line %d", __FILE__, __LINE__);}
  12. #endif /* NASSERT */
  13. #else /* lint */
  14. #define assert(ex)
  15. #endif /* lint */