#pragma once #include #include #ifndef __cplusplus #if (__STDC_VERSION__ < 202000L) typedef enum bool : uint8_t { false = 0, true = 1 } bool; #endif #endif typedef struct SizedString { char *str; size_t size; } SizedString; typedef uint8_t u8; typedef uint16_t u16; typedef uint32_t u32; typedef uint64_t u64; typedef int8_t i8; typedef int16_t i16; typedef int32_t i32; typedef int64_t i64; typedef float f32; typedef double f64; #define ERROR_SIZE INT64_MAX