update for HEAD-2003091401
[reactos.git] / lib / msvcrt / misc / assert.c
1 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2 #include <msvcrt/assert.h>
3 #include <msvcrt/stdio.h>
4 #include <msvcrt/stdlib.h>
5 #include <msvcrt/signal.h>
6
7
8 /*
9  * @implemented
10  */
11 void _assert(const char *msg, const char *file, int line)
12 {
13   /* Assertion failed at foo.c line 45: x<y */
14   fprintf(stderr, "Assertion failed at %s line %d: %s\n", file, line, msg);
15   raise(SIGABRT);
16   for(;;); /* eliminate warning by mingw */
17 }