From ab507033dbb433e92d1befa83cd0f2c146ad591e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 6 Oct 2019 14:25:11 -0400 Subject: [PATCH] common_types: Include types within the Sirit namespace Avoids dumping types into global scope. --- src/common_types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common_types.h b/src/common_types.h index 5c87d94..42df6f6 100644 --- a/src/common_types.h +++ b/src/common_types.h @@ -9,6 +9,8 @@ #include #include +namespace Sirit { + using u8 = std::uint8_t; using u16 = std::uint16_t; using u32 = std::uint32_t; @@ -25,3 +27,5 @@ using f32 = float; using f64 = double; static_assert(sizeof(f32) == sizeof(u32), "f32 must be 32 bits wide"); static_assert(sizeof(f64) == sizeof(u64), "f64 must be 64 bits wide"); + +} // namespace Sirit