summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-03 20:44:58 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-03 20:44:58 +0100
commitf44ea5d7f4a2276a57051ee9b09329949e970e3a (patch)
treef7bcd0c6e4bba02fe913cf4c703796967368da07
parentf978450949764bd4bd90dbad7c294097a7ee7e91 (diff)
compat/prelude: random namespace shenanigans
-rw-r--r--compat/prelude.hpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/compat/prelude.hpp b/compat/prelude.hpp
index 5520ded8..3516de98 100644
--- a/compat/prelude.hpp
+++ b/compat/prelude.hpp
@@ -1,6 +1,6 @@
#pragma once
-namespace floormat::types {
+namespace floormat {
#ifdef _MSC_VER
#if defined _WIN64
typedef unsigned __int64 size_t;
@@ -10,7 +10,7 @@ typedef unsigned int size_t;
#else
typedef __SIZE_TYPE__ size_t;
#endif
-} // namespace floormat::types
+} // namespace floormat
namespace Corrade::Containers {
@@ -32,9 +32,9 @@ template<typename T> class Vector3;
template<typename T> class Vector4;
} // namespace Magnum::Math
namespace Magnum {
-using Vector2uz = Math::Vector2<floormat::types::size_t>;
-using Vector3uz = Math::Vector3<floormat::types::size_t>;
-using Vector4uz = Math::Vector4<floormat::types::size_t>;
+using Vector2uz = Math::Vector2<floormat::size_t>;
+using Vector3uz = Math::Vector3<floormat::size_t>;
+using Vector4uz = Math::Vector4<floormat::size_t>;
} // namespace Magnum
namespace floormat {
@@ -42,10 +42,9 @@ namespace floormat {
using namespace ::Corrade::Containers;
using namespace ::Corrade::Containers::Literals;
using namespace ::Magnum::Math::Literals;
- using namespace ::floormat::types;
using Debug [[maybe_unused]] = ::Corrade::Utility::Debug;
using Error [[maybe_unused]] = ::Corrade::Utility::Error;
namespace Path = Corrade::Utility::Path; // NOLINT(misc-unused-alias-decls)
+ consteval auto operator""_uz(unsigned long long int x) { return ::floormat::size_t(x); }
} // namespace floormat
-
-consteval auto operator""_uz(unsigned long long int x) { return ::floormat::types::size_t(x); }
+namespace nlohmann { using ::floormat::operator""_uz; }