Types.hpp 448 B

1234567891011121314151617181920212223
  1. #ifndef CORE_TYPES_HPP
  2. #define CORE_TYPES_HPP
  3. #include <limits.h>
  4. #include <stdint.h>
  5. using i64 = int64_t;
  6. using i32 = int32_t;
  7. using i16 = int16_t;
  8. using i8 = int8_t;
  9. using u64 = uint64_t;
  10. using u32 = uint32_t;
  11. using u16 = uint16_t;
  12. using u8 = uint8_t;
  13. using c32 = char32_t;
  14. // user customizable max container size
  15. #ifndef CORE_INT_MAX
  16. #define CORE_INT_MAX 65535
  17. #endif
  18. static_assert(CORE_INT_MAX < INT_MAX, "custom int max too large");
  19. #endif