fix clang build
[picodrive.git] / pico / cd / genplus_macros.h
CommitLineData
a93a80de 1#undef uint8\r
2#undef uint16\r
3#undef uint32\r
4#undef int8\r
5#undef int16\r
6#undef int32\r
7\r
8#define uint8 unsigned char\r
9#define uint16 unsigned short\r
10#define uint32 unsigned int\r
11#define int8 signed char\r
12#define int16 signed short\r
13#define int32 signed int\r
14\r
15#define READ_BYTE(BASE, ADDR) (BASE)[(ADDR)^1]\r
16#define WRITE_BYTE(BASE, ADDR, VAL) (BASE)[(ADDR)^1] = (VAL)\r
17\r
18#define load_param(param, size) \\r
19 memcpy(param, &state[bufferptr], size); \\r
20 bufferptr += size;\r
21 \r
22#define save_param(param, size) \\r
23 memcpy(&state[bufferptr], param, size); \\r
24 bufferptr += size;\r