panthema / 2006 / SDIOS06 / sdios06 / lib / libc / assert.cc (Download File)
/*
 * $Id$
 */
#include <config.h>

#include <assert.h>
#include <stdio.h>

#include <l4/kdebug.h>

extern "C" {

void __assert_fail(const char* assertion, const char* file,
                   unsigned int line, const char* function)
{
	fprintf(stddebug, "\n");
	fprintf(stddebug, "Assertion failed: %s\n", assertion);
	fprintf(stddebug, "%s\n", function);
	fprintf(stddebug, "%s:%u\n", file, line); 
	
	L4_KDB_Enter("assertion failed");
}

}
RSS 2.0 Weblog Feed Atom 1.0 Weblog Feed Valid XHTML 1.1 Valid CSS (2.1)
Copyright 2005-2014 Timo Bingmann - Impressum