types.h (408B)
1 #pragma once 2 3 #include <stdint.h> 4 5 // Unsigned integer types 6 typedef uint8_t u8; 7 typedef uint16_t u16; 8 typedef uint32_t u32; 9 typedef uint64_t u64; 10 11 // Signed integer types 12 typedef int8_t i8; 13 typedef int16_t i16; 14 typedef int32_t i32; 15 typedef int64_t i64; 16 17 // Floating point types 18 typedef float f32; 19 typedef double f64; 20 21 // Boolean types 22 typedef int8_t b8; 23 24 #define true 1 25 #define false 0 26 27 #define NULL 0 28