Chameleon

Chameleon Svn Source Tree

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

Source at commit 1309 created 12 years 8 months ago.
By meklort, Add a few placeholders for file io
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: 1309