From c9474e1214436035dae7421b19e8bfd266f054b6 Mon Sep 17 00:00:00 2001 From: Jayden Grubb Date: Tue, 4 Nov 2025 21:45:00 +1000 Subject: [PATCH] Add primitive types aliases --- engine/include/nova/core/types.hpp | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 engine/include/nova/core/types.hpp diff --git a/engine/include/nova/core/types.hpp b/engine/include/nova/core/types.hpp new file mode 100644 index 0000000..1dfa27b --- /dev/null +++ b/engine/include/nova/core/types.hpp @@ -0,0 +1,35 @@ +/** + * Copyright (c) 2025, Jayden Grubb + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#pragma once + +#include +#include + +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;