2007-10-08 17:32:20 +04:00
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
#define STRINGIFY(x) #x
|
|
|
|
#define TOSTRING(x) STRINGIFY(x)
|
|
|
|
|
2016-08-23 17:34:59 +03:00
|
|
|
#define always_inline inline __attribute__((always_inline))
|
|
|
|
|
2007-10-08 17:32:20 +04:00
|
|
|
#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);
|