-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.hpp
40 lines (33 loc) · 1004 Bytes
/
types.hpp
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
#ifndef _DEFINES_H
#define _DEFINES_H
#pragma once
#include <cassert>
#include <cstdarg>
#include <cstdint>
#include <cstdio>
#include <windows.h>
#define STRINGIFY(x) #x
#define TOSTRING(x) STRINGIFY(x)
#define EXPECT_SIZE(type, size) static_assert(sizeof(type) == size, TOSTRING(type) " size mismatch, expected " TOSTRING(size))
#define DllImport __declspec(dllimport)
typedef std::uint64_t u64;
typedef std::uint32_t u32;
typedef std::uint16_t u16;
typedef std::uint8_t u8;
typedef std::int64_t s64;
typedef std::int32_t s32;
typedef std::int16_t s16;
typedef std::int8_t s8;
typedef float f32;
typedef double f64;
extern DllImport HINSTANCE sysHInst;
extern DllImport class Stream* sysCon;
extern DllImport class Stream* sysCon;
extern DllImport HWND sysCurrWnd;
extern DllImport int glnHeight;
extern DllImport int glnWidth;
extern DllImport WNDPROC lpPrevWndFunc;
extern DllImport class NodeMgr* nodeMgr;
extern DllImport class ModuleMgr* modMgr;
extern DllImport class UIMgr* uiMgr;
#endif