Chameleon

Chameleon Svn Source Tree

Root/branches/xZenu/src/modules/klibc/assert.c

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
9void __assert_fail(const char *expr, const char *file, unsigned int line)
10{
11printf("Assertion %s failed, file %s, line %u\n", expr, file, line);
12while(1);
13}
14
15void __assert_rtn(const char *func, const char *file, int line, const char* expr)
16{
17printf("Assertion %s failed, file %s, line %u, function %s\n", expr, file, line, func);
18while(1);
19}
20

Archive Download this file

Revision: 1406