projects
/
rpikern
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
cleanup
[rpikern]
/
src
/
libc
/
assert.h
1
#ifndef ASSERT_H_
2
#define ASSERT_H_
3
4
#include "panic.h"
5
6
#define assert(x) \
7
if(!(x)) { \
8
panic("Kernel assertion failed at " __FILE__ ":%d: " #x "\n", __LINE__); \
9
}
10
11
#endif /* ASSERT_H_ */