Root/
Source at commit 1321 created 12 years 9 months ago. By meklort, Add __extendsfdf2 from LLVM | |
---|---|
1 | /*␊ |
2 | * assert.c␊ |
3 | */␊ |
4 | ␊ |
5 | #include <stdlib.h>␊ |
6 | #include <stdio.h>␊ |
7 | #include <assert.h>␊ |
8 | ␊ |
9 | void __assert_fail(const char *expr, const char *file, unsigned int line)␊ |
10 | {␊ |
11 | ␉printf("Assertion %s failed, file %s, line %u\n", expr, file, line);␊ |
12 | ␉while(1);␊ |
13 | }␊ |
14 | ␊ |
15 | void __assert_rtn(const char *func, const char *file, int line, const char* expr)␊ |
16 | {␊ |
17 | ␉printf("Assertion %s failed, file %s, line %u, function %s\n", expr, file, line, func);␊ |
18 | ␉while(1);␊ |
19 | }␊ |
20 |