ca4bd38206
Edit build.lua for programs losing their private assert.h, so they depend on a list of .h files excluding assert.h. Remove modules/src/assert; it would be a dependency of cpp.ansi but we didn't build it, so cpp.ansi uses the libc assert. I hope that libc <assert.h> can better report failed assertions. Some old "assert.h" files didn't report the expression. Some reported a literal "x", because traditional C expanded the macro parameter x in "x", but ANSI C89 doesn't expand macro parameters in string literals.
17 lines
468 B
C
17 lines
468 B
C
/* $Id$ */
|
|
/*
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
*/
|
|
#define PRIVATE static /* or not */
|
|
#define IMPORT extern
|
|
#define EXPORT
|
|
|
|
/* Here to avoid creating another header "notreached.h" */
|
|
#ifndef NDEBUG
|
|
#define NOTREACHED() crash("in %s, %u: unreachable statement reached", \
|
|
__FILE__, __LINE__)
|
|
#else
|
|
#define NOTREACHED()
|
|
#endif /* NDEBUG */
|