summaryrefslogtreecommitdiffhomepage
path: root/Private/NewKit
diff options
context:
space:
mode:
Diffstat (limited to 'Private/NewKit')
-rw-r--r--Private/NewKit/Defines.hpp124
1 files changed, 62 insertions, 62 deletions
diff --git a/Private/NewKit/Defines.hpp b/Private/NewKit/Defines.hpp
index 164bdc9e..50668376 100644
--- a/Private/NewKit/Defines.hpp
+++ b/Private/NewKit/Defines.hpp
@@ -11,83 +11,83 @@
#include <NewKit/Macros.hpp>
-#define NEWKIT_VERSION "v1.00"
+#define NEWKIT_VERSION "1.0.0"
#if !defined(_INC_NO_STDC_HEADERS) && defined(__GNUC__)
-# include <CRT/__cxxkit_defines.h>
+#include <CRT/__cxxkit_defines.h>
#endif
#ifdef __has_feature
#if !__has_feature(cxx_nullptr)
-# error You must at least have nullptr featured on your C++ compiler.
+#error You must at least have nullptr featured on your C++ compiler.
#endif
#endif
namespace hCore
{
- using voidPtr = void*;
- using VoidPtr = void*;
- using nullPtr = decltype(nullptr);
- using NullPtr = decltype(nullptr);
-
- using Int = int;
- using Int32 = int;
- using UShort = unsigned short;
- using UInt16 = unsigned short;
- using Short = short;
- using Int16 = short;
- using UInt = unsigned int;
- using UInt32 = unsigned int;
- using Long = long int;
- using Int64 = long int;
- using ULong = unsigned long int;
- using UInt64 = unsigned long int;
- using Boolean = bool;
- using Bool = bool;
- using Char = char;
- using UChar = unsigned char;
- using UInt8 = unsigned char;
-
- using SSize = Int64;
- using SSizeT = Int64;
- using Size = __SIZE_TYPE__;
- using SizeT = __SIZE_TYPE__;
- using IntPtr = __INTPTR_TYPE__;
- using UIntPtr = __UINTPTR_TYPE__;
- using IntFast = __INT_FAST32_TYPE__;
- using IntFast64 = __INT_FAST64_TYPE__;
- using PtrDiff = __PTRDIFF_TYPE__;
-
- using Utf8Char = char8_t;
- using Utf16Char = char16_t;
- using Utf32Char = char32_t;
-
- using Void = void;
-
- using Lba = SSizeT;
-
- enum class Endian : UChar
- {
- kLittle,
- kBig
- };
-
- template <typename Args> Args &&forward(Args &arg)
- {
- return static_cast<Args &&>(arg);
- }
-
- template <typename Args> Args &&move(Args &&arg)
- {
- return static_cast<Args &&>(arg);
- }
+using voidPtr = void *;
+using VoidPtr = void *;
+using nullPtr = decltype(nullptr);
+using NullPtr = decltype(nullptr);
+
+using Int = int;
+using Int32 = int;
+using UShort = unsigned short;
+using UInt16 = unsigned short;
+using Short = short;
+using Int16 = short;
+using UInt = unsigned int;
+using UInt32 = unsigned int;
+using Long = long int;
+using Int64 = long int;
+using ULong = unsigned long int;
+using UInt64 = unsigned long int;
+using Boolean = bool;
+using Bool = bool;
+using Char = char;
+using UChar = unsigned char;
+using UInt8 = unsigned char;
+
+using SSize = Int64;
+using SSizeT = Int64;
+using Size = __SIZE_TYPE__;
+using SizeT = __SIZE_TYPE__;
+using IntPtr = __INTPTR_TYPE__;
+using UIntPtr = __UINTPTR_TYPE__;
+using IntFast = __INT_FAST32_TYPE__;
+using IntFast64 = __INT_FAST64_TYPE__;
+using PtrDiff = __PTRDIFF_TYPE__;
+
+using Utf8Char = char8_t;
+using Utf16Char = char16_t;
+using WideChar = wchar_t;
+using Utf32Char = char32_t;
+
+using Void = void;
+
+using Lba = SSizeT;
+
+enum class Endian : UChar
+{
+ kLittle,
+ kBig
+};
+
+template <typename Args> Args &&forward(Args &arg)
+{
+ return static_cast<Args &&>(arg);
+}
+
+template <typename Args> Args &&move(Args &&arg)
+{
+ return static_cast<Args &&>(arg);
+}
} // namespace hCore
#define DEDUCE_ENDIAN(address, value) \
- (((reinterpret_cast<hCore::Char*>(address)[0]) == (value)) ? (hCore::Endian::kBig) \
- : (hCore::Endian::kLittle))
+ (((reinterpret_cast<hCore::Char *>(address)[0]) == (value)) ? (hCore::Endian::kBig) : (hCore::Endian::kLittle))
#define Yes (true)
#define No (false)
-#define VoidStar hCore::voidPtr \ No newline at end of file
+#define VoidStar hCore::voidPtr