2007-10-08 15:32:20 +02:00
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
#define STRINGIFY(x) #x
|
|
|
|
#define TOSTRING(x) STRINGIFY(x)
|
|
|
|
|
|
|
|
#define CURRENT_LOCATION __FILE__ ":" TOSTRING(__LINE__)
|
|
|
|
|
|
|
|
#define err() \
|
|
|
|
{ \
|
|
|
|
_fail("at " CURRENT_LOCATION " "); \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define mb() asm volatile ("" : : : "memory")
|
|
|
|
|
2011-01-23 17:21:20 +01:00
|
|
|
void pass(void);
|
|
|
|
void _fail(char *reason);
|