mirror of
https://github.com/nmlgc/ReC98.git
synced 2025-02-26 20:55:09 +00:00

And hope that there won't be any more generic utility types like it… Part of P0133, funded by [Anonymous].
10 lines
184 B
C
10 lines
184 B
C
// Used by various (dumb) pieces of code that require byte-wise access to
|
|
// 16-bit values.
|
|
typedef union {
|
|
struct {
|
|
int8_t lo, hi;
|
|
} byte;
|
|
uint8_t u[2];
|
|
int16_t v;
|
|
} twobyte_t;
|