forked from OSchip/llvm-project
Implement the printf function, used by assert
llvm-svn: 2666
This commit is contained in:
parent
9af99f8c74
commit
0c1b51e622
|
@ -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 ();
|
||||
}
|
||||
|
Loading…
Reference in New Issue