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