summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/include/assert.h
blob: 4aa9f896a2460ef2618ca61ea8444feb8a6a3002 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*	$OpenBSD: assert.h,v 1.6 2001/03/09 05:44:40 smurph Exp $ */
#ifndef __MACHINE_ASSERT_H__
#define __MACHINE_ASSERT_H__
#ifndef assert
#define assert(x) \
({\
	if (!(x)) {\
		printf("assertion failure \"%s\" line %d file %s\n", \
		#x, __LINE__, __FILE__); \
		panic("assertion"); \
	} \
})
#endif /* assert */
#endif __MACHINE_ASSERT_H__