2007-10-08 17:32:20 +04: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 19:21:20 +03:00
|
|
|
void pass(void);
|
|
|
|
void _fail(char *reason);
|