-
Notifications
You must be signed in to change notification settings - Fork 0
/
core.h
47 lines (41 loc) · 984 Bytes
/
core.h
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
/**
* @file core.h
* @brief Core headers and definitions.
*
* @author Evan Elias Young
* @date 2021-11-20
* @date 2021-11-24
* @copyright Copyright 2021 Evan Elias Young. All rights reserved.
*/
#pragma once
#if defined(_WIN32) || defined(_WIN64)
#define WIN
#endif
#if defined(__APPLE__) && defined(__MACH__)
#define MAC
#endif
#if defined(__GNU__) || defined(__gnu_linux__)
#define TUX
#endif
#include "lib/json/single_include/nlohmann/json.hpp"
#include <array>
#include <cstdint>
#include <cstring>
#include <regex>
#include <string>
#include <vector>
using u8 = std::uint8_t;
using u16 = std::uint16_t;
using u32 = std::uint32_t;
using u64 = std::uint64_t;
using umax = std::uintmax_t;
using uptr = std::uintptr_t;
using nlohmann::json;
using std::array;
using std::string;
using std::vector;
using std::wstring;
inline std::regex operator"" _regex(const char *s, umax n)
{
return std::regex(s, n, std::regex_constants::ECMAScript);
}