Add primitive types aliases

This commit is contained in:
2025-11-04 21:45:00 +10:00
parent b9ead172bf
commit 2b5c9ac062

View File

@@ -0,0 +1,35 @@
/**
* Copyright (c) 2025, Jayden Grubb <contact@jaydengrubb.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <cstddef>
#include <cstdint>
namespace Nova::Types {
using u8 = uint8_t;
using u16 = uint16_t;
using u32 = uint32_t;
using u64 = uint64_t;
using usize = size_t;
using uptr = uintptr_t;
using umax = uintmax_t;
using i8 = int8_t;
using i16 = int16_t;
using i32 = int32_t;
using i64 = int64_t;
using isize = ptrdiff_t;
using iptr = intptr_t;
using imax = intmax_t;
using f32 = float;
using f64 = double;
} // namespace Nova::Types
using namespace Nova::Types;