2020-11-10 14:26:38 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
2020-11-12 21:22:33 +00:00
|
|
|
#include <cstddef>
|
2020-11-10 14:26:38 +00:00
|
|
|
|
|
|
|
using u8 = std::uint8_t;
|
|
|
|
using u16 = std::uint16_t;
|
|
|
|
using u32 = std::uint32_t;
|
|
|
|
using u64 = std::uint64_t;
|
|
|
|
using u128 = __uint128_t;
|
|
|
|
|
2020-11-10 15:24:48 +00:00
|
|
|
using s8 = std::int8_t;
|
|
|
|
using s16 = std::int16_t;
|
|
|
|
using s32 = std::int32_t;
|
|
|
|
using s64 = std::int64_t;
|
2020-11-10 14:26:38 +00:00
|
|
|
using s128 = __int128_t;
|
|
|
|
|
2020-12-01 17:19:49 +00:00
|
|
|
extern int mainArgc;
|
|
|
|
extern char **mainArgv;
|
|
|
|
|
2020-12-22 17:10:01 +00:00
|
|
|
#define IMHEX_PLUGIN namespace hex::plugin::internal { \
|
|
|
|
void setImGuiContext(ImGuiContext *ctx) { \
|
2020-12-27 13:12:53 +00:00
|
|
|
gladLoadGL(); \
|
2020-12-22 17:10:01 +00:00
|
|
|
ImGui::SetCurrentContext(ctx); \
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
namespace hex::plugin
|
|
|
|
|
2020-12-21 11:38:30 +00:00
|
|
|
#ifdef OS_WINDOWS
|
2020-11-21 13:39:16 +00:00
|
|
|
#define MAGIC_PATH_SEPARATOR ";"
|
|
|
|
#else
|
|
|
|
#define MAGIC_PATH_SEPARATOR ":"
|
|
|
|
#endif
|