update for HEAD-2003021201
[reactos.git] / lib / crtdll / misc / assert.c
diff --git a/lib/crtdll/misc/assert.c b/lib/crtdll/misc/assert.c
new file mode 100644 (file)
index 0000000..0469371
--- /dev/null
@@ -0,0 +1,13 @@
+/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include <msvcrt/assert.h>
+#include <msvcrt/stdio.h>
+#include <msvcrt/stdlib.h>
+#include <msvcrt/signal.h>
+
+
+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);
+}