/* Copyright (C) 2003, 2004 Dave Bayer. Subject to the terms and conditions of the MIT License. */ #include "root.h" /*. executionError */ void executionError( char *s, BOOL abort ) { fflush( stdout ); if ( s != 0 ) fprintf( stderr, "%s\n", s ); if ( abort ) { fputs( "Aborting\n", stderr ); exit( 1 ); } } /*. assertFailed */ void assertFailed( char *condition, char *fileName, int lineNo ) { fflush( stdout ); fprintf( stderr, "\nAssert (%s) failed in \"%s\" on line %d\n", condition, fileName, lineNo ); executionError( 0, YES ); }