Statistics
| Branch: | Revision:

root / tests / tcg / cris / sys.h @ c09015dd

History | View | Annotate | Download (350 Bytes)

1 dd43edf4 ths
#include <unistd.h>
2 dd43edf4 ths
3 dd43edf4 ths
#define STRINGIFY(x) #x
4 dd43edf4 ths
#define TOSTRING(x) STRINGIFY(x)
5 dd43edf4 ths
6 dd43edf4 ths
#define CURRENT_LOCATION __FILE__ ":" TOSTRING(__LINE__)
7 dd43edf4 ths
8 dd43edf4 ths
#define err()                         \
9 dd43edf4 ths
{                                     \
10 dd43edf4 ths
  _fail("at " CURRENT_LOCATION " ");  \
11 dd43edf4 ths
}
12 dd43edf4 ths
13 dd43edf4 ths
#define mb() asm volatile ("" : : : "memory")
14 dd43edf4 ths
15 64b85a8f Blue Swirl
void pass(void);
16 64b85a8f Blue Swirl
void _fail(char *reason);