summaryrefslogtreecommitdiffstats
path: root/tests/cris/sys.h
blob: c5f88e1a2946f1ed8bae75a8e1bd186a07eea4d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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")

void pass(void);
void _fail(char *reason);
OpenPOWER on IntegriCloud