historical/m0-applesillicon.git/xnu-qemu-arm64-5.1.0/tests/tcg/cris/libc/sys.h
2024-01-16 11:20:27 -06:00

18 lines
411 B
C

#include <unistd.h>
#define STRINGIFY(x) #x
#define TOSTRING(x) STRINGIFY(x)
#define always_inline inline __attribute__((always_inline))
#define CURRENT_LOCATION __FILE__ ":" TOSTRING(__LINE__)
#define err() \
{ \
_fail("at " CURRENT_LOCATION " "); \
}
#define mb() asm volatile ("" : : : "memory")
void pass(void);
void _fail(char *reason);