/*
	assert.h
        @(#) $Id: assert.h,v 1.1.1.1 2006-04-28 15:13:28 admelbrus Exp $
*/

#ifdef __ASSERT_H

#undef __ASSERT_H
#undef  assert

#endif /* __ASSERT_H */

#define __ASSERT_H
#include <_ansi.h>
#ifdef NDEBUG           /* required by ANSI standard */
#define assert(p)  	((void)0)
#else
#define assert(p)   ((p) ? (void)0 : (void) __assertfail( \
        			"Assertion failed: %s, file %s, line %d\n", \
    	    		#p, __FILE__, __LINE__ ) )
#ifdef __cplusplus
extern "C" {
#endif

int _EXFUN(__assertfail,(char *__msg, char *__cond, char *__file, int __line));

#ifdef __cplusplus
}
#endif

#endif /* NDEBUG */

