jak-project/common/common_types.h
water111 0451a06d76
Set up the compiler to ptrace the runtime (#107)
* set up the compiler to ptrace the runtime

* clang format

* move debugger state to a separate Debugger class

* support registers and break and continue

* documentation and fix windows

* make listener part of compiler, not a separate library

* implement memory read and write

* fix for windows
2020-10-31 14:07:43 -04:00

34 lines
508 B
C++

#pragma once
/*!
* @file common_types.h
* Common Integer Types.
*/
#ifndef JAK1_COMMON_TYPES_H
#define JAK1_COMMON_TYPES_H
#include <cstdint>
using u8 = uint8_t;
using u16 = uint16_t;
using u32 = uint32_t;
using u64 = uint64_t;
using s8 = int8_t;
using s16 = int16_t;
using s32 = int32_t;
using s64 = int64_t;
struct u128 {
union {
u64 du64[2];
u32 du32[4];
u16 du16[8];
u8 du8[16];
float f[4];
};
};
static_assert(sizeof(u128) == 16, "u128");
#endif // JAK1_COMMON_TYPES_H