2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
11 /*****************************************************************************
22 Evaluates the expression expr and if it's FALSE or NULL, then
23 printf a message and stops the program. The message will
24 contain the expression, the name of the file with the assert
25 in it and the line in the file.
28 expr - The expression to evaluate. The type of the expression does
29 not matter, only if its zero/NULL or not.
32 The function doesn't return.
37 // Make sure that x equals 1
45 ******************************************************************************/
46 void __assert (const char * expr
, const char * file
, unsigned int line
)
48 fprintf (stderr
, "Assertion (%s) failed in %s:%u\n", expr
, file
, line
);