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:
parent
0cfea31aee
commit
69f8e162eb
13
runtime/GCCLibraries/libgcc/eprintf.c
Normal file
13
runtime/GCCLibraries/libgcc/eprintf.c
Normal 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 ();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user