Make fatal_assert() use abort() instead of exit()
This commit is contained in:
@@ -40,7 +40,7 @@ static void fatal_error( const char *expression, const char *file, int line, con
|
|||||||
{
|
{
|
||||||
fprintf( stderr, "Fatal assertion failure in function %s at %s:%d\nFailed test: %s\n",
|
fprintf( stderr, "Fatal assertion failure in function %s at %s:%d\nFailed test: %s\n",
|
||||||
function, file, line, expression );
|
function, file, line, expression );
|
||||||
exit( 2 );
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
#define fatal_assert(expr) \
|
#define fatal_assert(expr) \
|
||||||
|
|||||||
Reference in New Issue
Block a user