kern

annotate src/klibc/assert.h @ 55:88a6c4e192f9

Fixed most important task switching bugs. Now it seems that I can switch in and out of user space reliably.
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 15 Aug 2011 04:03:39 +0300
parents
children 0be4615594df
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@52 8 panic("Kernel assertion failed: " #x "\n"); \
nuclear@52 9 }
nuclear@52 10
nuclear@52 11 #endif /* ASSERT_H_ */