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