assert.h 441 B

123456789101112131415161718192021222324
  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. */
  6. /*
  7. * L L G E N
  8. *
  9. * An Extended LL(1) Parser Generator
  10. *
  11. * Author : Ceriel J.H. Jacobs
  12. */
  13. /*
  14. * assert.h $Header$
  15. * an assertion macro
  16. */
  17. #ifndef NDEBUG
  18. #define assert(x) if(!(x)) badassertion("x",__FILE__,__LINE__)
  19. #else
  20. #define assert(x) /* nothing */
  21. #endif