mirror of
https://github.com/reactos/reactos.git
synced 2025-06-16 18:08:31 +00:00
18 lines
415 B
C
18 lines
415 B
C
![]() |
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
||
|
#include <assert.h>
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <signal.h>
|
||
|
|
||
|
|
||
|
/*
|
||
|
* @implemented
|
||
|
*/
|
||
|
void _assert(const char *msg, const char *file, int line)
|
||
|
{
|
||
|
/* Assertion failed at foo.c line 45: x<y */
|
||
|
fprintf(stderr, "Assertion failed at %s line %d: %s\n", file, line, msg);
|
||
|
raise(SIGABRT);
|
||
|
for(;;); /* eliminate warning by mingw */
|
||
|
}
|