kern

view src/klibc/assert.h @ 52:fa65b4f45366

picking this up again, let's fix it
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 07 Aug 2011 06:42:00 +0300
parents
children 0be4615594df
line source
1 #ifndef ASSERT_H_
2 #define ASSERT_H_
4 #include "panic.h"
6 #define assert(x) \
7 if(!(x)) { \
8 panic("Kernel assertion failed: " #x "\n"); \
9 }
11 #endif /* ASSERT_H_ */