assert.h 402 B

12345678910111213141516
  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 MACH_PROTO_NCG_ASSERT_H
  7. #define MACH_PROTO_NCG_ASSERT_H
  8. #ifndef NDEBUG
  9. #define assert(x) if(!(x)) badassertion( #x ,__FILE__,__LINE__)
  10. #else
  11. #define assert(x) /* nothing */
  12. #endif
  13. #endif /* MACH_PROTO_NCG_ASSERT_H */