branch update for HEAD-2003021201
[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 void _assert(const char *msg, const char *file, int line)
9 {
10   /* Assertion failed at foo.c line 45: x<y */
11   fprintf(stderr, "Assertion failed at %s line %d: %s\n", file, line, msg);
12   raise(SIGABRT);
13 }