summaryrefslogtreecommitdiffhomepage
path: root/compat/prelude.hpp
blob: 5520ded881a0a6d74bbcfd342bfe68ec5d23567f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#pragma once

namespace floormat::types {
#ifdef _MSC_VER
#if defined _WIN64
typedef unsigned __int64   size_t;
#else
typedef unsigned int       size_t;
#endif
#else
typedef __SIZE_TYPE__      size_t;
#endif
} // namespace floormat::types

namespace Corrade::Containers {

class String;
template<typename T> class BasicStringView;
using StringView = BasicStringView<const char>;

template<typename T> class ArrayView;

} // namespace Corrade::Containers

namespace Corrade::Containers::Literals {}
namespace Corrade::Utility::Path {}
namespace Corrade::Utility { class Debug; class Error; }
namespace Magnum::Math::Literals {}
namespace Magnum::Math {
template<typename T> class Vector2;
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>;
} // namespace Magnum

namespace floormat {
    using namespace ::Magnum;
    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)
} // namespace floormat

consteval auto operator""_uz(unsigned long long int x) { return ::floormat::types::size_t(x); }