/* %Z%%M% %I% %E% */

/*
 * Copyright (c) 1991, 1992, 1995 by Wayne C. Gramlich.
 * All rights reserved.
 *
 * Permission to use, copy, modify, distribute, and sell this software
 * for any purpose is hereby granted without fee provided that the above
 * copyright notice and this permission are retained.  The author makes
 * no representations about the suitability of this software for any purpose.
 * It is provided "as is" without express or implied warranty.
 */

/* Wrapper for assert.h: */

#ifndef UNIX_ASSERT_H
#define UNIX_ASSERT_H

#ifndef LIBC_EXPORTS_H
#include "libc_exports.h"
#endif

#ifndef UNIX_STDIO_H
#include "unix_stdio.h"
#endif

#include <assert.h>
#include <stdlib.h>

#define assert_fail()							    \
	{								    \
	(void)fprintf(stderr, "Assertion failed: file \"%s\", line %d\n",   \
		      __FILE__, __LINE__);				    \
	exit(1);							    \
	}

#endif /* UNIX_ASSERT_H */

