Rev 6433 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6433 | Rev 9013 | ||
---|---|---|---|
Line 1... | Line -... | ||
1 | #include |
- | |
2 | #include |
1 | #include |
3 | #include |
2 | #include |
4 | #include |
- | |
Line 5... | Line -... | ||
5 | - | ||
6 | 3 | ||
7 | void __assert_func (char *file, int line, char *ass) |
- | |
8 | { |
- | |
9 | char buf[100]; |
- | |
10 | 4 | void __assert_fail(const char *expr, const char *file, int line, const char *func){ |
|
11 | snprintf(buf,100,"Assertion failed: %s, file %s, line %d\n", ass, file, line); |
- | |
12 | debug_out_str(buf); |
5 | fprintf(stderr, "Assertion failed: %s (%s: %s: %d)\n", expr, file, func, line); |
13 | exit(-1); |
- | |
14 | } |
- | |
15 | - | ||
16 | void __trace_func (char *file, int line, char *msg) |
- | |
17 | { |
- | |
18 | char buf[100]; |
- | |
19 | snprintf(buf,100,"Trace: %s, file %s, line %d\n", msg, file, line); |
- | |
20 | debug_out_str(buf); |
6 | abort(); |