Root/
Source at commit 1406 created 12 years 10 months ago. By meklort, Revert drivers.c so that kexts are only loaded when OSBundleRequired is set and that value is not safe mode. Added some comments about it too. | |
---|---|
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 |