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 9af99f8c74
commit 0c1b51e622
1 changed files with 13 additions and 0 deletions

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 ();
}