mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-14 10:57:08 +03:00
ace23ebbe2
git-svn-id: svn://kolibrios.org@6433 a494cfbc-eb01-0410-851d-a64ba20cac60
22 lines
455 B
C
22 lines
455 B
C
#include <assert.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <kolibrisys.h>
|
|
|
|
|
|
void __assert_func (char *file, int line, char *ass)
|
|
{
|
|
char buf[100];
|
|
|
|
snprintf(buf,100,"Assertion failed: %s, file %s, line %d\n", ass, file, line);
|
|
debug_out_str(buf);
|
|
exit(-1);
|
|
}
|
|
|
|
void __trace_func (char *file, int line, char *msg)
|
|
{
|
|
char buf[100];
|
|
snprintf(buf,100,"Trace: %s, file %s, line %d\n", msg, file, line);
|
|
debug_out_str(buf);
|
|
}
|