kern
annotate src/klibc/assert.h @ 80:4db99a52863e
fixed the "endianess" of the text messages in the ATA identify info block. this
is the first time I've seen wrong byteorder in ascii text, the ATA committee
should be commended.
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 06 Dec 2011 13:35:39 +0200 |
parents | fa65b4f45366 |
children |
rev | line source |
---|---|
nuclear@52 | 1 #ifndef ASSERT_H_ |
nuclear@52 | 2 #define ASSERT_H_ |
nuclear@52 | 3 |
nuclear@52 | 4 #include "panic.h" |
nuclear@52 | 5 |
nuclear@52 | 6 #define assert(x) \ |
nuclear@52 | 7 if(!(x)) { \ |
nuclear@56 | 8 panic("Kernel assertion failed at " __FILE__ ":%d: " #x "\n", __LINE__); \ |
nuclear@52 | 9 } |
nuclear@52 | 10 |
nuclear@52 | 11 #endif /* ASSERT_H_ */ |