1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Implement the printf function, used by assert

llvm-svn: 2666
This commit is contained in:
Chris Lattner 2002-05-20 19:11:23 +00:00
parent 0cfea31aee
commit 69f8e162eb

View File

@ -0,0 +1,13 @@
#include <stdio.h>
void abort(void);
/* This is used by the `assert' macro. */
void
__eprintf (const char *string, const char *expression,
unsigned int line, const char *filename)
{
fprintf (stderr, string, expression, line, filename);
fflush (stderr);
abort ();
}