|
@@ -38,13 +38,12 @@ assert_printf ( const char *fmt, ... ) asm ( "printf" );
|
38
|
38
|
* @todo Make an assertion failure abort the program
|
39
|
39
|
*
|
40
|
40
|
*/
|
41
|
|
-#define assert( condition ) \
|
42
|
|
- do { \
|
43
|
|
- if ( ASSERTING && ! (condition) ) { \
|
44
|
|
- assert_printf ( "assert(%s) failed at %s line " \
|
45
|
|
- "%d [%s]\n", #condition, __FILE__, \
|
46
|
|
- __LINE__, __FUNCTION__ ); \
|
47
|
|
- } \
|
|
41
|
+#define assert( condition ) \
|
|
42
|
+ do { \
|
|
43
|
+ if ( ASSERTING && ! (condition) ) { \
|
|
44
|
+ assert_printf ( "assert(%s) failed at %s line %d\n", \
|
|
45
|
+ #condition, __FILE__, __LINE__ ); \
|
|
46
|
+ } \
|
48
|
47
|
} while ( 0 )
|
49
|
48
|
|
50
|
49
|
/**
|