ths | dd43edf | 2007-10-08 13:32:20 +0000 | [diff] [blame] | 1 | #include <unistd.h> |
2 | |||||
3 | #define STRINGIFY(x) #x | ||||
4 | #define TOSTRING(x) STRINGIFY(x) | ||||
5 | |||||
6 | #define CURRENT_LOCATION __FILE__ ":" TOSTRING(__LINE__) | ||||
7 | |||||
8 | #define err() \ | ||||
9 | { \ | ||||
10 | _fail("at " CURRENT_LOCATION " "); \ | ||||
11 | } | ||||
12 | |||||
13 | #define mb() asm volatile ("" : : : "memory") | ||||
14 | |||||
Blue Swirl | 64b85a8 | 2011-01-23 16:21:20 +0000 | [diff] [blame] | 15 | void pass(void); |
16 | void _fail(char *reason); |