/*
 *	assert.h
 */

#ifndef	__ASSERT_H
#define	__ASSERT_H


#undef	assert
#ifdef	NDEBUG
#define	assert(cond)	((void)0)
#else	/* NDEBUG */
#define	_q_(s)	# s
#define	assert(cond)	\
((cond) ? (void)0 : (fputs("Assertion failed: " # cond ", file " \
		__FILE__ ", line " _q_(__LINE__) "\n", stderr), abort()))
#endif	/* NDEBUG */

#endif	/* __ASSERT_H */
