Files
ftmemsim-valgrind/VEX/basictypes.c
Julian Seward 65e80c8a06 Add basic storage management.
git-svn-id: svn://svn.valgrind.org/vex/trunk@20
2004-06-26 20:10:35 +00:00

21 lines
466 B
C

#include <stdio.h>
#include <stdlib.h>
#include "basictypes.h"
__attribute__ ((noreturn))
void vex_assert_fail ( const Char* expr,
const Char* file, Int line, const Char* fn )
{
fprintf(stderr, "\nvex: %s:%d (%s): Assertion `%s' failed.\n",
file, line, fn, expr );
exit(1);
}
__attribute__ ((noreturn))
void panic ( Char* str )
{
fprintf(stderr, "\nvex: the `impossible' happened:\n %s\n", str);
exit(1);
}