diff options
Diffstat (limited to 'sys/arch/mvme88k/include/assert.h')
-rw-r--r-- | sys/arch/mvme88k/include/assert.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/arch/mvme88k/include/assert.h b/sys/arch/mvme88k/include/assert.h new file mode 100644 index 00000000000..c9e72557e77 --- /dev/null +++ b/sys/arch/mvme88k/include/assert.h @@ -0,0 +1,8 @@ +#define assert(x) \ +({\ + if (!(x)) {\ + printf("assertion failure \"%s\" line %d file %s\n", \ + #x, __LINE__, __FILE__); \ + panic("assertion"); \ + } \ +}) |