From e822b518dba394227d3b106e1375ee83280bcc11 Mon Sep 17 00:00:00 2001 From: heck Date: Tue, 5 Nov 2024 15:42:03 +0100 Subject: [PATCH] Move types into own namespace --- src/types.hh | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/types.hh b/src/types.hh index c459beb..5fb8d11 100644 --- a/src/types.hh +++ b/src/types.hh @@ -6,21 +6,23 @@ #include "daisysp.h" namespace Heck { - - // fundamental types - using u8 = uint8_t; - using u16 = uint16_t; - using u32 = uint32_t; - using u64 = uint64_t; - - using i8 = int8_t; - using i16 = int16_t; - using i32 = int32_t; - using i64 = int64_t; - - using f32 = float; - using f64 = double; - + namespace Types { + // fundamental types + using u8 = uint8_t; + using u16 = uint16_t; + using u32 = uint32_t; + using u64 = uint64_t; + + using i8 = int8_t; + using i16 = int16_t; + using i32 = int32_t; + using i64 = int64_t; + + using f32 = float; + using f64 = double; + } + + using namespace Types; // namespace aliases namespace ld = daisy; namespace dsp = daisysp;