kern
annotate src/klibc/assert.h @ 65:e49fdda97607
changed the makefile to only pass "emulation" (-m32 -melf_i386) only when not
running on a i386 system. Also made that work for freebsd too
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Wed, 05 Oct 2011 02:34:58 +0300 |
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_ */ |