kern

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/klibc/assert.h	Sun Aug 07 06:42:00 2011 +0300
     1.3 @@ -0,0 +1,11 @@
     1.4 +#ifndef ASSERT_H_
     1.5 +#define ASSERT_H_
     1.6 +
     1.7 +#include "panic.h"
     1.8 +
     1.9 +#define assert(x) \
    1.10 +	if(!(x)) { \
    1.11 +		panic("Kernel assertion failed: " #x "\n"); \
    1.12 +	}
    1.13 +
    1.14 +#endif	/* ASSERT_H_ */