Hubris Engine Dev
A Project to learn and get into Game Engine developement.
 
Loading...
Searching...
No Matches
Memory_inst.cpp
Go to the documentation of this file.
1#include "Memory.h"
2
6
7using namespace Hubris;
8
14#define INSTANTIATE(type) \
15template struct Weak<type>;\
16template struct Weak<const type>;\
17template struct Handle<type>;\
18template struct Handle<const type>;
19
21INSTANTIATE(signed char);
22INSTANTIATE(unsigned char);
24INSTANTIATE(unsigned short);
26INSTANTIATE(unsigned int);
28INSTANTIATE(unsigned long);
29INSTANTIATE(long long);
30INSTANTIATE(unsigned long long);
31
34INSTANTIATE(long double);
35
38INSTANTIATE(ptrdiff_t);
39INSTANTIATE(wchar_t);
40INSTANTIATE(char16_t);
41INSTANTIATE(char32_t);
42
#define INSTANTIATE(type)
To avoid bloat, since Weak<T> itself will cause Shared<T> I pre-instantiate only one of them....
The Hubris Engine main namespace.
Definition EventBus.h:4