1 // note: include after system headers
3 //#pragma GCC diagnostic ignored "-Wparentheses"
22 #define _WORD uint16_t
23 #define _DWORD uint32_t
24 #define _UNKNOWN uint8_t
29 #define LOBYTE(x) (*((u8*)&(x)))
30 #define LOWORD(x) (*((u16*)&(x)))
31 #define HIBYTE(x) (*((u8*)&(x)+1))
32 #define HIWORD(x) (*((u16*)&(x)+1))
33 #define BYTE0(x) (*((u8*)&(x)+0))
34 #define BYTE1(x) (*((u8*)&(x)+1))
35 #define BYTE2(x) (*((u8*)&(x)+2))
36 #define BYTE3(x) (*((u8*)&(x)+3))
38 #define memcpy_0 memcpy
40 #define noreturn __attribute__((noreturn))
42 static inline BOOL PtInRect_sa(LPCRECT r, int x, int y)
45 return PtInRect(r, p);
48 #define do_skip_code_abort() \
49 printf("%s:%d: skip_code_abort\n", __FILE__, __LINE__); \
50 *(volatile int *)0 = 1