mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
Implement the printf function, used by assert
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2666 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
5245f853c5
commit
cfb81918ed
1 file changed
+13
@@ -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 ();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user