2022-04-10 19:59:34 +02:00
|
|
|
#ifndef SDKDEFS_H
|
|
|
|
#define SDKDEFS_H
|
2022-04-09 00:59:42 +02:00
|
|
|
|
|
|
|
// Common type declarations to reduce code verbosity.
|
2022-04-10 19:59:34 +02:00
|
|
|
using std::pair;
|
|
|
|
using std::regex;
|
2022-04-09 00:59:42 +02:00
|
|
|
using std::string;
|
2022-04-24 19:34:14 +02:00
|
|
|
using std::wstring;
|
2022-05-30 01:50:53 +02:00
|
|
|
using std::u16string;
|
|
|
|
using std::u32string;
|
2022-04-09 00:59:42 +02:00
|
|
|
using std::vector;
|
|
|
|
using std::fstream;
|
|
|
|
using std::ifstream;
|
|
|
|
using std::ofstream;
|
2022-04-13 01:25:33 +02:00
|
|
|
using std::stringstream;
|
2022-04-09 00:59:42 +02:00
|
|
|
using std::ostringstream;
|
2022-04-14 19:18:59 +02:00
|
|
|
using std::unordered_map;
|
2022-04-09 00:59:42 +02:00
|
|
|
|
2022-08-18 12:00:01 +02:00
|
|
|
typedef DWORD ThreadId_t;
|
2022-11-29 20:36:45 +01:00
|
|
|
typedef uintptr_t uintp;
|
|
|
|
typedef intptr_t intp;
|
|
|
|
|
2022-04-09 00:59:42 +02:00
|
|
|
typedef const unsigned char* rsig_t;
|
2024-02-10 01:18:55 +01:00
|
|
|
|
|
|
|
// signed size types
|
2022-06-24 12:12:59 +02:00
|
|
|
typedef std::make_signed_t<std::size_t> ssize_t;
|
2022-04-09 00:59:42 +02:00
|
|
|
|
2024-02-10 01:18:55 +01:00
|
|
|
#ifndef SSIZE_MAX
|
|
|
|
#ifdef _WIN64
|
|
|
|
#define SSIZE_MAX 9223372036854775807i64
|
|
|
|
#define SSIZE_MIN (-9223372036854775807i64 - 1)
|
|
|
|
#else
|
|
|
|
#define SSIZE_MAX 2147483647
|
|
|
|
#define SSIZE_MIN (-2147483647 - 1)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// unsigned size types
|
|
|
|
#ifndef SIZE_MAX
|
|
|
|
#define SIZE_MAX ((size_t) -1)
|
|
|
|
#endif
|
|
|
|
|
2022-04-10 19:59:34 +02:00
|
|
|
#endif // SDKDEFS_H
|