mirror of
https://github.com/yuzu-emu/sirit
synced 2024-11-22 17:14:01 +00:00
common_types: Include types within the Sirit namespace
Avoids dumping types into global scope.
This commit is contained in:
parent
6e14d37386
commit
ab507033db
1 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,8 @@
|
|||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue