blob: 90a0be4509876cbf32169b451281f6588d59c06a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <log.h>
#include <stdio.h>
#define assert(expr) \
{ \
if (!(expr)) \
aFailed(__FILE__, __LINE__); \
}
#define ASSERT_BUT_FIXME_PROPOGATE(expr) \
{ \
if (!(expr)) \
kprintf("Performing assert that should have been a propogated error."); \
assert(expr); \
}
void aFailed(char *f, int l);
#define ASSERT_NOT_REACHED \
{ assert(0) }
|